RPR SetMediaItemTakeInfo Value
From CockosWiki
(→Examples) |
|||
(5 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
{{API_Doc_Header}} | {{API_Doc_Header}} | ||
- | = = | + | =SetMediaItemTakeInfo_Value()= |
+ | bool SetMediaItemTakeInfo_Value(MediaItem_Take* take, const char* parmname, double newvalue) | ||
+ | |||
+ | Set media item take numerical-value attributes. | ||
+ | *D_STARTOFFS : double *, start offset in take of item | ||
+ | *D_VOL : double *, take volume | ||
+ | *D_PAN : double *, take pan | ||
+ | *D_PANLAW : double *, take pan law (-1.0=default, 0.5=-6dB, 1.0=+0dB, etc) | ||
+ | *D_PLAYRATE : double *, take play rate (1.0=normal, 2.0=doublespeed, etc) | ||
+ | *D_PITCH : double *, take pitch adjust (in semitones, 0.0=normal, +12 = one octave up, etc) | ||
+ | *B_PPITCH, bool *, preserve pitch when changing rate | ||
+ | *I_CHANMODE, int *, channel mode (0=normal, 1=revstereo, 2=downmix, 3=l, 4=r) | ||
+ | *I_PITCHMODE, int *, pitch shifter mode, -1=proj default, otherwise high word=shifter low word = parameter | ||
+ | |||
==Parameters== | ==Parameters== | ||
==Returns== | ==Returns== | ||
+ | bool 1=ok, 0=fail? | ||
==Examples== | ==Examples== | ||
+ | ===C++=== | ||
+ | <source lang=cpp> | ||
+ | </source> | ||
+ | |||
+ | |||
===Perl=== | ===Perl=== | ||
- | < | + | <source lang=perl> |
- | </ | + | </source> |
+ | |||
+ | |||
===Python=== | ===Python=== | ||
- | < | + | <source lang=python> |
- | </ | + | </source> |
+ | |||
==See Also== | ==See Also== | ||
+ | {{SeeAlso_item}} | ||
+ | |||
+ | {{SeeAlso_take}} | ||
+ | |||
+ | ''(Section automatically generated, edits above this line may be overwritten.)'' | ||
+ | |||
==Stuff== | ==Stuff== | ||
{{API_Doc_Footer}} | {{API_Doc_Footer}} |
Latest revision as of 10:48, 29 January 2010
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR SetMediaItemTakeInfo Value
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR SetMediaItemTakeInfo Value
Contents |
SetMediaItemTakeInfo_Value()
bool SetMediaItemTakeInfo_Value(MediaItem_Take* take, const char* parmname, double newvalue)
Set media item take numerical-value attributes.
- D_STARTOFFS : double *, start offset in take of item
- D_VOL : double *, take volume
- D_PAN : double *, take pan
- D_PANLAW : double *, take pan law (-1.0=default, 0.5=-6dB, 1.0=+0dB, etc)
- D_PLAYRATE : double *, take play rate (1.0=normal, 2.0=doublespeed, etc)
- D_PITCH : double *, take pitch adjust (in semitones, 0.0=normal, +12 = one octave up, etc)
- B_PPITCH, bool *, preserve pitch when changing rate
- I_CHANMODE, int *, channel mode (0=normal, 1=revstereo, 2=downmix, 3=l, 4=r)
- I_PITCHMODE, int *, pitch shifter mode, -1=proj default, otherwise high word=shifter low word = parameter
Parameters
Returns
bool 1=ok, 0=fail?
Examples
C++
Perl
Python
See Also
item: AddMediaItemToTrack, AddTakeToMediaItem, GetTrackMediaItem, GetTrackNumMediaItems, CountMediaItems, CountSelectedMediaItems, GetItemProjectContext, SetMediaItemInfo_Value, CountTrackMediaItems, SetMediaItemTakeInfo_Value, GetMediaItem, GetMediaItem_Track, GetMediaItemInfo_Value, GetMediaItemNumTakes, GetMediaItemTake, GetMediaItemTake_Item, GetMediaItemTake_Source, GetMediaItemTake_Track, GetMediaItemTakeInfo_Value, SplitMediaItem, MoveMediaItemToTrack, GetSelectedMediaItem, DeleteTrackMediaItem, GetSetItemState, GetSetMediaItemTakeInfo_String, Undo_OnStateChange_Item, UpdateItemInProject,
take: GetActiveTake, GetMediaItemNumTakes, GetMediaItemTake, GetMediaItemTakeInfo_Value, GetMediaItemTake_Item, GetMediaItemTake_Source, GetMediaItemTake_Track, GetSetMediaItemTakeInfo_String, GetTake, GetTakeEnvelopeByName, SetMediaItemTakeInfo_Value, AddTakeToMediaItem, CountTakes,
(Section automatically generated, edits above this line may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR SetMediaItemTakeInfo Value
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR SetMediaItemTakeInfo Value