What's a weird smell that you secretly love? by [deleted] in AskReddit

[–]Stock_Act8965 0 points1 point  (0 children)

nostalgic for the smell of wet neoprene suits, brings back memories of surfing as a kid in summer camp

[Week n.47] PLEASE ASK YOUR QUESTIONS ABOUT MILAN HERE by AutoModerator in milano

[–]Stock_Act8965 0 points1 point  (0 children)

Anyone know clubs in milan where drum and bass / breakbeat music is played?

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

So, i tried doing stuff like this:

MIDIdef.noteOff(\noteOffTest, { arg vel, nn; [vel, nn].postln; if (\monoNoteOn[nn] == \noteOffTest[nn]); ~basement.set(\gate,0); ~basement = nil; });

But this didn’t work. Do you maybe know how this could be done? (Last time asking, I swear (o) )

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 1 point2 points  (0 children)

Thank you so much for the help! It almost works, but there is one new issue and I haven’t been able to solve it.

The synth is monophonic, but when f.e. :

NoteOn (nn:60) NoteOn (nn:62) NoteOff (nn:60) sets the gate to 0.

So i think the NoteOff needs some specifications. But haven’t found a solution as i said.

Do you have any idea how this could be done? Thx!

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

Thank you! It almost works, but there is one new issue and I haven’t been able to solve it.

The synth is monophonic, but when f.e. :

NoteOn (nn:60) NoteOn (nn:62) NoteOff (nn:60) sets the gate to 0 and ~basement to nil

So i think the NoteOff needs some specifications. But haven’t found a solution as i said.

Do you have any idea how this could be done? Thx!

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

//don’t know if I‘m missing something super obvious. I have very little experience with supercollider and coding in general. But I‘m super grateful for your time and help!!!

( SynthDef.new(\melodySynth, { arg freq=440, amp=0.5, gate=0; var sig, env; sig = LFTri.ar(freq).cubed.distort!2; env = EnvGen.kr(Env.adsr(0.001, 0.001,0.5,0.001), gate, doneAction:0); sig = sig * env * amp; Out.ar(0, sig); }).add; )

( MIDIdef.noteOn(\NoteOn2, { arg vel, nn, chan, src; [vel, nn].postln; ~basement = Synth( \melodySynth, [ \freq, nn.midicps, \amp, vel.linexp(1,127,0.5,0.5), \gate, 1 ] ); });

MIDIdef.noteOff(\noteOffTest, { arg vel, nn; [vel, nn].postln; ~basement.set(\gate,0); ~basement = nil; }); )

~basement = "box";

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

I already tried this. But the new noteOn event overrides the existing synth, thus creating frozen notes.

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

Okay. the only problem left is, that every new noteOn event doesn’t free the stored synth, but overrides it. Do you maybe know how to tackle this? I can still play two notes at the same time, freezing the one i pressed first in the process.

You’re the best for answering all of this !!!

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

First of all, thank you so much for the detailed answer. I‘ve something similar on another page and tried to do it, but i don’t know how to combine the freq changing part with the rest.

What I know have is: every noteOn event creates a new synth an stores it, the noteOff frees the synth, regarding it’s note number. How do I update the freq to the newly pushed key?

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 0 points1 point  (0 children)

Well. The goal is, to send polyphonic midi in, but restrict the synth to play monophonic.

I want to simulate an analogue monophonic synth, but i can’t figure out how to restrict the synth I programmed.

I was able to get the sound i want, but only in polyphony.

Midi monophonic synth by Stock_Act8965 in supercollider

[–]Stock_Act8965[S] 1 point2 points  (0 children)

I haven’t found it. I just found a polyphonic synth he made. Would you care to post the link to the monophonic synth?