Skip to content

Using two Harmonic synths in a dag, in a .gin #331

Answered by jesseengel
juanalonso asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you can specify multiple instances by scoping within Gin, kind of like a web address. So for your example it would look like:

ProcessorGroup.dag = [

  #Can I give a name to this processor?
  (@harm1/Harmonic(),  
    ['amps_1', 'harmonic_distribution_1', 'f0_hz_1']

  #And also to this one
  (@harm2/Harmonic(), 
    ['amps_2', 'harmonic_distribution_2', 'f0_hz_2']

  #So I can do something like this
  (@processors.Add(), ['harmonic_1/signal', 'harmonic_2/signal']),
]

harm1/Harmonic.name = 'harmonic_1'
harm2/Harmonic.name = 'harmonic_2'

With scoping you can also change the other parameters of each instance, to have separate instances, with one instance per a scoping namespace.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by juanalonso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants