Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. shapeFreqMod :: C a => (c -> T a b) -> Phase a -> T c -> T a -> T b

    synthesizer-core Synthesizer.Plain.Oscillator

    oscillator with both shape and frequency modulation

  2. shapeFreqModFromSampledTone :: C t => T t y -> T t y -> t -> T y -> t -> t -> T t -> T t -> T y

    synthesizer-core Synthesizer.Plain.Oscillator

    Time stretching and frequency modulation of a pure tone. We consider a tone as the result of a shape modulated oscillator, and virtually reconstruct the waveform function (a function of time and phase) by interpolation and resample it. This way we can alter frequency and time progress of the tone independently. This function is identical to using shapeFreqMod with a wave function constructed by sampledTone but it consumes the sampled source tone lazily and thus allows only relative shape control with non-negative control steps. The function is similar to shapeFreqModSample but respects that in a sampled tone, phase and shape control advance synchronously. Actually we could re-use shapeFreqModSample with modified phase values. But we would have to cope with negative shape control jumps, and waves would be padded locally cyclically. The latter one is not wanted since we want padding according to the adjacencies in the source tone. Note that differently from shapeFreqModSample the shape control difference 1 does not mean to skip to the next wave, since this oscillator has no discrete waveforms. Instead 1 means that the shape alters as fast as in the prototype signal. Although the shape difference values must be non-negative I hesitate to give them the type Number.NonNegative.T t because then you cannot call this function with other types of non-negative numbers like T. The prototype tone signal is reproduced if freqs == repeat (1/period) and shapes == repeat 1.

  3. shapeFreqModSample :: (C c, C b) => T c (T b a) -> [T b a] -> c -> Phase b -> T c -> T b -> T a

    synthesizer-core Synthesizer.Plain.Oscillator

    Shape control is a list of relative changes, each of which must be non-negative in order to allow lazy processing. '1' advances by one wave. Frequency control can be negative. If you want to use sampled waveforms as well then use sample in the list of waveforms. With sampled waves this function is identical to HunkTranspose in Assampler. Example: interpolate different versions of oddCosine and oddTriangle. You could also chop a tone into single waves and use the waves as input for this function but you certainly want to use sampledTone or shapeFreqModFromSampledTone instead, because in the wave information for shapeFreqModSample shape and phase are strictly separated.

  4. shapePhaseFreqModFromSampledTone :: C t => T t y -> T t y -> t -> T y -> t -> t -> T t -> T t -> T t -> T y

    synthesizer-core Synthesizer.Plain.Oscillator

    No documentation available.

  5. shapePhaseFreqModSample :: (C c, C b) => T c (T b a) -> [T b a] -> c -> T c -> T (Phase b) -> T b -> T a

    synthesizer-core Synthesizer.Plain.Oscillator

    No documentation available.

  6. freqModImpulses :: C a => a -> T a -> T a

    synthesizer-core Synthesizer.Plain.Oscillator.BandLimited

    impulse train with modulated frequency

  7. freqsToPhases :: C a => T a -> T a -> T (T a)

    synthesizer-core Synthesizer.Plain.ToneModulation

    Convert a list of phase steps into a list of momentum phases phase is a number in the interval [0,1) freq contains the phase steps

  8. inverseFrequencyModulationCeiling :: (Ord t, C t) => T t -> T v -> T v

    synthesizer-core Synthesizer.State.Filter.NonRecursive

    No documentation available.

  9. inverseFrequencyModulationFloor :: (Ord t, C t) => T t -> T v -> T v

    synthesizer-core Synthesizer.State.Filter.NonRecursive

    This is inverse to frequency modulation. If all control values in ctrl are above one, then it holds: frequencyModulation ctrl (inverseFrequencyModulationFloor ctrl xs) == xs . Otherwise inverseFrequencyModulationFloor is lossy. For the precise property we refer to Test.Sound.Synthesizer.Plain.Interpolation. The modulation uses constant interpolation. Other interpolation types are tricky to implement, since they would need interpolation on non-equidistant grids. Ok, at least linear interpolation could be supported with acceptable effort, but perfect reconstruction would be hard to get. The process is not causal in any of its inputs, however control and input are aligned. If you use interpolation for resampling or frequency modulation, you may want to smooth the signal before resampling according to the local resampling factor. However you cannot simply use the resampling control to also control the smoothing, because of the subsequent distortion by resampling. Instead you have to stretch the control inversely to the resampling factor. This is the task of this function. It may be applied like:

    frequencyModulation ctrl (smooth (inverseFrequencyModulationFloor ctrl ctrl) xs)
    

  10. whiteQuadraticBSplineGen :: (C y, Random y, RandomGen g) => g -> T y

    synthesizer-core Synthesizer.State.Noise

    Approximates normal distribution with variance 1 by a quadratic B-spline distribution.

Page 511 of many | Previous | Next