Feature request: MIDI "synth" #3175
Replies: 9 comments
-
Interesting idea. How would you go about handling the subtle but significant difference with how Perhaps |
Beta Was this translation helpful? Give feedback.
-
To be honest I hadn't thought through in detail how the differences would be handled, but ideally "normal" usage should just work with both standard synths and midi. My initial idea would be to set the midi |
Beta Was this translation helpful? Give feedback.
-
Excellent idea. Seems like it would work well on first thought. Let me think about it a bit deeper... |
Beta Was this translation helpful? Give feedback.
-
Great! |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about this a bit, and realised that there might be other scenarios where a user wants to create a custom synth that does something other than the usual forwarding to supercollider, such as using a set of samples as an instrument (e.g. here, and I think @rbnpi has done something similar too). It would be great if there was a way to make these work with the standard What about having something like the following, where # define a new synth called :midi that forwards all notes to the midi command
defsynth :midi do |note, amp=1, attack=0, decay=0, sustain=0, release=0|
v = (amp * 32).min(0).max(127) # map 0 - 4-ish range onto 0 - 127
sus = attack + decay + sustain + release
midi note, vel: v, sustain: sus
end
# now :midi is available as a synth
with_synth :midi do
play_pattern_timed [60, 68, 76, 82, 84], [0.5, 1], amp: 2
end |
Beta Was this translation helpful? Give feedback.
-
Yes! I've been thinking about this for a while too. I think that the |
Beta Was this translation helpful? Give feedback.
-
Just adding a gentle ping to make sure this doesn't get forgotten @samaaron |
Beta Was this translation helpful? Give feedback.
-
Next ping @samaaron 🙂 |
Beta Was this translation helpful? Give feedback.
-
Happy to discuss this but definitely not until after v4. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is feasible or not, but it would be nice to have a "synth" that instead of synthesising notes, would just send them as MIDI signals.
This would make it really easy to adapt a piece to use an external synth by just wrapping it in a
with_synth :midi do
block.Currently the only way to do that is to go through the code replacing calls to
play
withmidi
, and when you have things likeplay_pattern_timed
it starts getting complicated.Beta Was this translation helpful? Give feedback.
All reactions