Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <a name="SetTakeStretchMarker"><hr></a><br>
<div class="c_func"><span class="all_view">C: </span><code>int SetTakeStretchMarker(MediaItem_Take* take, int idx, double pos, const double* srcposInOptional)</code><br><br></div>
<div class="e_func"><span class="all_view">EEL: </span><code><i>int </i>SetTakeStretchMarker(<i>MediaItem_Take</i> take, <i>int </i>idx, pos, <i>optional </i>srcposInOptional)</code><br><br></div>
<div class="l_func"><span class="all_view">Lua: </span><code><i>integer</i> reaper.SetTakeStretchMarker(<i>MediaItem_Take</i> take, <i>integer</i> idx, <i>number</i> pos, <i>optional number </i>srcposInOptional)</code><br><br></div>
<div class="p_func"><span class="all_view">Python: </span><code><i>Int</i> RPR_SetTakeStretchMarker(<i>MediaItem_Take</i> take, <i>Int</i> idx, <i>Float</i> pos, <i>const double</i> srcposInOptional)</code><br><br></div>
Adds or updates a stretch marker. If idx&lt;0, stretch marker will be added. If idx&gt;=0, stretch marker will be updated. When adding, if srcposInOptional is omitted, source position will be auto-calculated. When updating a stretch marker, if srcposInOptional is omitted, srcpos will not be modified. Position/srcposition values will be constrained to nearby stretch markers. Returns index of stretch marker, or -1 if did not insert (or marker already existed at time).<br><br>
<a name="SetTempoTimeSigMarker"><hr></a><br>
<div class="c_func"><span class="all_view">C: </span><code>bool SetTempoTimeSigMarker(ReaProject* proj, int ptidx, double timepos, int measurepos, double beatpos, double bpm, int timesig_num, int timesig_denom, bool lineartempo)</code><br><br></div>
<div class="e_func"><span class="all_view">EEL: </span><code><i>bool </i>SetTempoTimeSigMarker(<i>ReaProject</i> proj, <i>int </i>ptidx, timepos, <i>int </i>measurepos, beatpos, bpm, <i>int </i>timesig_num, <i>int </i>timesig_denom, <i>bool </i>lineartempo)</code><br><br></div>
<div class="l_func"><span class="all_view">Lua: </span><code><i>boolean</i> reaper.SetTempoTimeSigMarker(<i>ReaProject</i> proj, <i>integer</i> ptidx, <i>number</i> timepos, <i>integer</i> measurepos, <i>number</i> beatpos, <i>number</i> bpm, <i>integer</i> timesig_num, <i>integer</i> timesig_denom, <i>boolean</i> lineartempo)</code><br><br></div>
<div class="p_func"><span class="all_view">Python: </span><code><i>Boolean</i> RPR_SetTempoTimeSigMarker(<i>ReaProject</i> proj, <i>Int</i> ptidx, <i>Float</i> timepos, <i>Int</i> measurepos, <i>Float</i> beatpos, <i>Float</i> bpm, <i>Int</i> timesig_num, <i>Int</i> timesig_denom, <i>Boolean</i> lineartempo)</code><br><br></div>
Set parameters of a tempo/time signature marker. Provide either timepos (with measurepos=-1, beatpos=-1), or measurepos and beatpos (with timepos=-1). If timesig_num and timesig_denom are zero, the previous time signature will be used. ptidx=-1 will insert a new tempo/time signature marker. See <a href="#CountTempoTimeSigMarkers">CountTempoTimeSigMarkers</a>, <a href="#GetTempoTimeSigMarker">GetTempoTimeSigMarker</a>, <a href="#AddTempoTimeSigMarker">AddTempoTimeSigMarker</a>.<br><br>
<a name="SetToggleCommandState"><hr></a><br>


                /*@namespace url(;
@-moz-document url-prefix('file:///C:.....'){ fill with your own value, generated by stylish */ 
  body {
    background: #333;
    color: white;
    line-height: 1.777;
    font-size: 1.25;
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
    font-weight: 400;
  tr {
  .p_func {
    color: #E2543B;
  .l_func {
    color: #F2E426;
  .e_func {
    color: #3AD13A;
  .c_func {
    color: #D33FC7;
  .p_func, .l_func, .e_func, .c_func {
    font-weight: bold;
  code, pre {
    font-family: monospace, serif;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1em 0.201em;
    border-radius: 0.201em;
    color: #92A2A2;
    margin: 0 .201em;
    padding: 0 .201em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
  a {
    color: #3BB58A;
    transition: all ease 0.238s;
  a:hover {
  code i {
    color: #5F91E2;
  hr {
    padding: 0; 
    color: #FFF; 
    text-align: center;