Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 12-15-2017, 07:52 AM   #1
Jason Lyon
Human being with feelings
 
Join Date: May 2016
Posts: 720
Default Set media item on selected track to muted

Sorry to be a pest, but I'm getting tangled up in all the Gets and Sets in EEL.
I just want to mute the MIDI content on a selected track.
Starting from the info gathering...

trackid = GetSelectedTrack(proj, 0);
mediaid = GetTrackMediaItem(trackid, 0);
takeid = GetActiveTake(mediaid);

I need something like:
MuteTheMIDIBuggeronThatTrack(parameter explosion...);

I did have it working at one point, but I've forgotten the specific function and parameters.

TIA.
Jason Lyon is offline   Reply With Quote
Old 12-15-2017, 09:43 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Use SetMediaItemInfo_Value( item, parmname, newvalue ) and as parmname: B_MUTE

https://www.extremraym.com/cloud/rea...ItemInfo_Value
nofish is offline   Reply With Quote
Old 12-15-2017, 06:13 PM   #3
Jason Lyon
Human being with feelings
 
Join Date: May 2016
Posts: 720
Default

Thanks. Sorted out now.
It's become part of my Pnosplitter project, which I've just put up for feedback.
Jason Lyon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.