Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Add midi velocity function - #81

Open
Lelant wants to merge 4 commits into
felixroos:mainfrom
Lelant:add_midi_velocity
Open

Add midi velocity function#81
Lelant wants to merge 4 commits into
felixroos:mainfrom
Lelant:add_midi_velocity

Conversation

@Lelant

@Lelant Lelant commented Aug 10, 2025

Copy link
Copy Markdown
  • now you can use midivelocity() similar to midigate() and midifreq() like this for example:

midigate(1).ar(0.01,0.2).mul(saw(midifreq(1))).mul(midivelocity(1)).mul(.8).out()

note: fork doesn't work yet with midivelocity(), don't know why.

@Lelant Lelant left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to test this a bit more first. Sometimes it's not working

@Lelant

Lelant commented Aug 15, 2025

Copy link
Copy Markdown
Author

Found out that other midi channels block other channels. like the velocity is not set on other channels if you don't play another channel once first. Then it works. This only affects if the sound is played at all, not the velocity value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant