mute an instrument via script

Options
Arepo_Tenets
Arepo_Tenets Member Posts: 5 Member

Hi guys,

I have this script that mutes an instrument if a CC 65 with value 0 is received.

______

on note

if (%CC[65] = 0)

ignore_event ($EVENT_ID)

end if

end on

______

I'd like to improve it so that even if no CC 65 is being sent, it will just play "by default", and only perform the mute/unmute when it first receives a CC 65 value. Is that possible?


Thanks!"

Best Answers

  • stephen24
    stephen24 Member Posts: 280 Pro
    Answer ✓
    Options
    on init
     set_controller (65, 64)
    end on
    
  • Arepo_Tenets
    Arepo_Tenets Member Posts: 5 Member
    Answer ✓
    Options

    thanks a lot! 😊

Answers

  • stephen24
    stephen24 Member Posts: 280 Pro
    Answer ✓
    Options
    on init
     set_controller (65, 64)
    end on
    
  • Arepo_Tenets
    Arepo_Tenets Member Posts: 5 Member
    Answer ✓
    Options

    thanks a lot! 😊

Back To Top