-- | (not documented)
module Sound.SC3.UGen.Record.FMGrain where
import qualified Sound.SC3.UGen as S
import Sound.SC3.UGen.Record
data FMGrain = FMGrain {
  trigger :: S.UGen,
  dur :: S.UGen,
  carfreq :: S.UGen,
  modfreq :: S.UGen,
  index :: S.UGen
  } deriving (Show)
fMGrain :: FMGrain
fMGrain = FMGrain {
  trigger = 0.0,
  dur = 1.0,
  carfreq = 440.0,
  modfreq = 200.0,
  index = 1.0
  }
mkFMGrain :: FMGrain -> S.UGen
mkFMGrain (FMGrain  a' b' c' d' e') = S.mkOsc S.AR "FMGrain" [a',b',c',d',e'] 1
instance Make FMGrain where
  ugen = mkFMGrain