Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 06-02-2020, 03:22 AM   #521
aurelien
Human being with feelings
 
Join Date: Apr 2014
Posts: 48
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Hotfix 2 available.

Changes:
  • Render: ApplyRenderTable_Project - had problem, when applied twice in a script -> fixed(thanks to aurelien)
  • Render: ApplyRenderTable_ProjectFile - had problem, when applied twice in a script -> fixed(thanks to aurelien)

Please update your ReaPacks.


@aurelien
Found the bug, which was an edge case bug, you accidentally stumbled upon with ApplyRenderTable_Project.
Should work now, I hope.

PS: Thanks to you, the function GetProject_MarkersAndRegions supports now reading the region-selection-state of a region in a projectfile. Will be part of the next update

Thanks for the fix ! It's better but there's still a bug :
If you select two regions(instead of one in my demo project), the RenderProject_RenderTable will only render the first selected region.

Like you said, if i save the settings and pass the second argument as nil, it's working perfectly.

ps: To select two regions, use the reaper "Region Marker Manager".
aurelien is offline   Reply With Quote
Old 06-02-2020, 11:58 AM   #522
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Ok, will have a look. At least, were slowly getting there
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-02-2020, 05:21 PM   #523
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

I've tried it, it works perfectly. Can you open the Render to file dialog during before execution of the script and see, whether it shows under "Time bounds" 2 regions or just one ?

Edit:

This is the project I use:
Code:
<REAPER_PROJECT 0.1 "6.11/x64" 1591144039
  RIPPLE 0
  GROUPOVERRIDE 0 0 0
  AUTOXFADE 1
  ENVATTACH 1
  POOLEDENVATTACH 0
  MIXERUIFLAGS 11 52
  PEAKGAIN 1
  FEEDBACK 0
  PANLAW 0.70794578438414
  PROJOFFS 0 0 0
  MAXPROJLEN 0 600
  GRID 3455 8 0.015625 8 1 0 1 0
  TIMEMODE 5 5 5 30 0 -1 8
  PANMODE 3
  CURSOR 39.54246191038607
  ZOOM 17.77835688615414 195 0
  VZOOMEX 6 0
  USE_REC_CFG 1
  RECMODE 1
  SMPTESYNC 0 30 100 40 1000 300 0 0 1 0 0
  LOOP 0
  LOOPGRAN 0 4
  RECORD_PATH "\Media" ""
  <RECORD_CFG
    ZXZhdxgBAA==
  >
  <APPLYFX_CFG
    ZXZhdyAD
  >
  RENDER_FILE "c:\test2"
  RENDER_PATTERN $region
  RENDER_FMT 0 2 48000
  RENDER_1X 0
  RENDER_RANGE 5 0 0 1 0
  RENDER_RESAMPLE 9 0 1
  RENDER_ADDTOPROJ 0
  RENDER_STEMS 0
  RENDER_DITHER 0
  TIMELOCKMODE 0
  TEMPOENVLOCKMODE 0
  ITEMMIX 0
  DEFPITCHMODE 589824 0
  TAKELANE 1
  SAMPLERATE 48000 0 0
  <RENDER_CFG
    ZXZhdxgDAA==
  >
  LOCK 1
  <METRONOME 6 2
    VOL 0.25 0.125
    FREQ 800 1600 1
    BEATLEN 4
    SAMPLES "" ""
    PATTERN 2863311530 2863311529
  >
  GLOBAL_AUTO -1
  TEMPO 120 4 4
  PLAYRATE 1 0 0.25 4
  SELECTION 39.54246191038607 49.21714675901539
  SELECTION2 39.54246191038607 49.21714675901539
  MASTERAUTOMODE 0
  MASTERTRACKHEIGHT 30 0
  MASTERPEAKCOL 16576
  MASTERMUTESOLO 0
  MASTERTRACKVIEW 1 0.6667 0.5 0.5 0 0 0 0 0 0
  MASTERHWOUT
  MASTER_NCH 6 2
  MASTER_VOLUME 1 0 -1 -1 1
  MASTER_FX 1
  MASTER_SEL 0
  <MASTERPLAYSPEEDENV
    EGUID {C554022C-B3D0-455F-B2E7-90294AB7CFC7}
    ACT 0 -1
    VIS 0 1 1
    LANEHEIGHT 0 0
    ARM 0
    DEFSHAPE 0 -1 -1
  >
  <TEMPOENVEX
    EGUID {60F06397-419C-4BC3-B8EB-8C9F29172EC0}
    ACT 0 -1
    VIS 1 0 1
    LANEHEIGHT 0 0
    ARM 0
    DEFSHAPE 1 -1 -1
  >
  MARKER 1 22.74421181186993 test_region 9 0 1 R {FB5FB20C-DF59-46B3-96AD-04B51B47DC26}
  MARKER 1 36.02339273872001 "" 9 0 1 R
  MARKER 2 39.54246191038607 "" 9 0 1 R {05D5E2DA-61A7-4D3D-B357-A679D0C8C844}
  MARKER 2 49.21714675901539 "" 9 0 1 R
  <PROJBAY
  >
  <TRACK {658455D1-946B-41DB-9BFC-F23EBF6460F5}
    NAME TestTrack
    PEAKCOL 33530462
    BEAT -1
    AUTOMODE 0
    VOLPAN 1 0 -1 -1 1
    MUTESOLO 0 0 0
    IPHASE 0
    PLAYOFFS 0 1
    ISBUS 0 0
    BUSCOMP 0 0 0 0 0
    SHOWINMIX 1 0.6667 0.5 1 0.5 0 0 0
    FREEMODE 0
    SEL 0
    REC 0 0 0 0 0 0 0
    VU 2
    TRACKHEIGHT 0 0 0
    INQ 0 0 0 0.5 100 0 0 100
    NCHAN 2
    FX 1
    TRACKID {658455D1-946B-41DB-9BFC-F23EBF6460F5}
    PERF 0
    MIDIOUT -1
    MAINSEND 1 0
    <ITEM
      POSITION 24.5187905724003
      SNAPOFFS 0
      LENGTH 1.39001910316939
      LOOP 0
      ALLTAKES 0
      FADEIN 3 0 0 3 0 -1
      FADEOUT 3 0 0 3 0 1
      MUTE 0
      SEL 0
      IGUID {4046AADA-28FA-4127-88E7-B06EDF2A8616}
      IID 1
      NAME " - stem"
      VOLPAN 1 0 1 -1
      SOFFS 0.83343896141851
      PLAYRATE 1 1 0 -1 0 0.0025
      CHANMODE 0
      GUID {BC9C3FFB-9B1D-42CC-82D8-F3664F6ABF7D}
      <SOURCE WAVE
        FILE "\Media\reaper_stems-004.wav"
      >
    >
    <ITEM
      POSITION 46.96722005003182
      SNAPOFFS 0
      LENGTH 1.39001910316939
      LOOP 0
      ALLTAKES 0
      FADEIN 3 0 0 3 0 -1
      FADEOUT 3 0 0 3 0 1
      MUTE 0
      SEL 1
      IGUID {976973DA-34BA-4B96-B80F-B8E9FA363E01}
      IID 2
      NAME " - stem"
      VOLPAN 1 0 1 -1
      SOFFS 0.83343896141851
      PLAYRATE 1 1 0 -1 0 0.0025
      CHANMODE 0
      GUID {0576858C-FDC2-42E8-B932-EF038CB861FD}
      <SOURCE WAVE
        FILE "\Media\reaper_stems-004.wav"
      >
    >
  >
  <EXTENSIONS
    <SWSAUTOCOLOR
      {00000000-0000-0000-0000-000000000000} 0 "" "" ""
      {658455D1-946B-41DB-9BFC-F23EBF6460F5} 33530462 "" "" ""
    >
    <XENAKIOSCOMMANDS
      REFTRACK 0 0 1 "0"
    >
  >
  <EXTSTATE
    <ULTRASCHALL_MAGICROUTING
      LASTCOUNTTRACKS 1
      STEP recording
    >
  >
>
and here the script:

Code:
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")

  render_cfg_string = ultraschall.CreateRenderCFG_WAV(2, 0, 0, 0, false)
  
  --Settings of the render table
  sourceDropDown=0 -- 0 MasterMix, 32 Selected Mediam Items, 64 selected item via master
  bounds=5 -- 2 TimeSelection, 3 Projects region, 4 Selected Media, 5 Selected Regions
  Startposition =0
  Endposition = 0
  TailFlag =1
  TailMS=0
  renderDirectory="c:\\test2"
  filePattern="$region"
  sampleRate=48000
  channels=2
  OfflineOnlineRendering=0
  ProjectSampleRateFXProcessing =true
  RenderResample =9
  OnlyMonoMedia =false
  MultiChannelFiles=false
  dither=0
  SilentlyIncrementFilename=false
  AddToProj=false
  SaveCopyOfProject=false
  RenderQueueDelay=false
  RenderQueueDelaySeconds=0
  CloseAfterRender=true

  --Create the RenderTable
  RenderTable = ultraschall.CreateNewRenderTable(sourceDropDown, bounds, Startposition, Endposition, TailFlag, TailMS, renderDirectory, filePattern, sampleRate, channels, OfflineOnlineRendering, ProjectSampleRateFXProcessing, RenderResample, OnlyMonoMedia, MultiChannelFiles, dither, render_cfg_string, SilentlyIncrementFilename, AddToProj, SaveCopyOfProject, RenderQueueDelay, RenderQueueDelaySeconds, CloseAfterRender)

  ultraschall.ApplyRenderTable_Project(RenderTable,false)

AP={ultraschall.RenderProject_RenderTable(nil, RenderTable)}
SLEM()
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish

Last edited by Meo-Ada Mespotine; 06-02-2020 at 05:28 PM.
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-02-2020, 09:39 PM   #524
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 7,545
Default

Quote:
Originally Posted by Jason Brian Merrill View Post
I would DEFINITELY suggest that it does it on exit. We don't need another autosave function that might mess shit up in the middle of a project.
Should be a totally manual action, no? Never automatic, just when you want? I just meant I would include it in a custom action I use for incrementing file versions and queuing a render.
__________________
My Wyyyrd Music
foxAsteria is offline   Reply With Quote
Old 06-03-2020, 04:19 AM   #525
Jason Brian Merrill
Human being with feelings
 
Jason Brian Merrill's Avatar
 
Join Date: Jun 2006
Location: Northeastern PA, USA
Posts: 21,185
Default

Quote:
Originally Posted by foxAsteria View Post
Should be a totally manual action, no? Never automatic, just when you want? I just meant I would include it in a custom action I use for incrementing file versions and queuing a render.
I would like it automatic so I don't have to remember. It could also be a startup action though.

I dont want to have to think of it. I would love it for just looking back at a library of presets and templates. As long as it gets organized nicely, I think it would be great
__________________
Beliefs do not require respect. People do.
Jason Brian Merrill is offline   Reply With Quote
Old 06-03-2020, 06:52 AM   #526
Jason Brian Merrill
Human being with feelings
 
Jason Brian Merrill's Avatar
 
Join Date: Jun 2006
Location: Northeastern PA, USA
Posts: 21,185
Default

Quote:
Originally Posted by foxAsteria View Post
Should be a totally manual action, no? Never automatic, just when you want? I just meant I would include it in a custom action I use for incrementing file versions and queuing a render.
those are also fantastic ideas
__________________
Beliefs do not require respect. People do.
Jason Brian Merrill is offline   Reply With Quote
Old 06-07-2020, 05:06 PM   #527
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

New release
4.1.002 - "The Buzzcocks - Why can't I touch it" - 8th of June 2020

Has now 1146 functions, with 17 new ones

new in this release:
  • Video window-Toggle Fullscreen
    You can now toggle the video-window fullscreen/non-fullscreen via VideoWindow_FullScreenToggle.
  • Activate/Deactivate Mute-envelopes
    Wasn't possible until now: activation and deactivation of Mute-Envelopes, as otherwise you cannot write to them.
  • MuteActions more stable
    They should now set mute-envelope-points properly, no matter of mute-env-armstate and/or automation-mode.
  • Project-Diffs-Developertool
    Reimplemented, so it shows only the diff-lines now.
  • Benchmarking-functions
    You can have multiple benchmark-slots, so benchmarking multiple values at the same time is now possible.
    That way, you can benchmark the whole script and individual functions in one go.
  • Item Buttons can be now toggled
    Now, you can toggle the buttons shown at the top of the MediaItem, like mute, FX, Envelopes, etc. Change them in one go, to have different "profiles"
    of MediaItem-buttons, that reflect the usecases of your different projects.
  • PreventUIRefresh and RestoreUIRefresh
    Like Reaper's own PreventUIRefresh, but prevents accidental misuse of its counter, as the counting up is done by PreventUIRefresh and the "reset" of a
    PreventUIRefresh can be undone by RestoreUIRefresh.
    When using RestoreUIRefresh(true), all ultraschall.PreventUIRefresh-calls are reset, so the user-interface of Reaper is useable again.
  • bugfixes and readdition of accidentally deleted function..oops

New features in 4.1.002
  • Benchmarking: Benchmark_GetAllStartTimesAndSlots - returns the starttimes of all current benchmark-measuring-slots as a handy table(index=slot number)
  • Envelope Management: SetEnvelopeState_Act - sets bypass and automation-items-behavior
  • Envelope Management: SetEnvelopeState_DefShape - sets the default-envelope shapes and pitch-snap-settings
  • Envelope Management: SetEnvelopeState_LaneHeight - sets the height and compacted state of an envelope
  • Envelope Management: SetEnvelopeState_Vis - sets the visibility-state of an envelope
  • Mute Management: ActivateMute - activates a mute-envelope of a track
  • Mute Management: ActivateMute_TrackObject - activates a mute-envelope of a track
  • Mute Management: DeactivateMute - deactivates a mute-envelope of a track
  • Mute Management: DeactivateMute_TrackObject - deactivates a mute-envelope of a track
  • Take Management: GetTake_ReverseState - returns, if a take is reversed or not
  • User Interface: GetItemButtonsVisible - gets the individual item-buttons visible/invisible-state
  • User Interface: GetPreventUIRefreshCount - the number of times you need to restore UI-refresh
  • User Interface: PreventUIRefresh - prevents refreshing of the user-interface, more solid, than Reaper's own PreventUIRefresh-function
  • User Interface: RestoreUIRefresh - restores a prevented UI-refreshing
  • User Interface: SetItemButtonsVisible - sets the individual item-buttons visible/invisible
  • User Interface: VideoWindow_FullScreenToggle - toggles full-screen-state of the video-processor-window(requested by vectorwarrior)

    Changes from 4.1.001 to 4.1.002
  • Benchmarking: Benchmark_GetStartTime - has now additional optional parameter slot to get the starttime of a certain benchmarking-slot(requested by rstockm)
  • Benchmarking: Benchmark_MeasureTime - has now additional optional parameter slot, with which you can store multiple measurings into different slots, for more benchmarks than just one(requested by rstockm)
  • Developer Tools: ultraschall_developertool_Project_State_Diffs_Moni tor.lua - improved so it now only shows changed lines and therfore proper diffs
  • Docs: Reaper internals - updated to Reaper 6.11, SWS 2.11.0 and JS-extension 1.215; added accidentally missing functions
  • Docs: US-docs - functionname's last ) was not bold for some reason -> fixed
  • Envelope Management: GetEnvelopeState_DefShape - added missing descriptions for returnvalues for pitch-snap
  • GUI: Scythe - loads its libraries from UserPlugins\ultraschall_api\3rd_party_modules\Scyt he\ now, so it shouldn't get in conflict with user's own installation of a Scythe-instance
  • Marker Management: CountNormalMarkers - optimized speed
  • Marker Management: GetAllMarkersBetween - parameters can be nil now, allowing to be used for projectstart and projectend
  • Marker Management: GetAllRegionsBetween - parameters can be nil now, allowing to be used for projectstart and projectend
  • Marker Management: EnumerateNormalMarkers - optimized speed
  • Marker Management: SetNormalMarker - optimized speed
  • Marker Management: DeleteNormalMarker - optimized speed
  • Marker Management: IsMarkerNormal - optimized speed
  • Mute Management: GetNextMuteState - returns now the mutestate, even if no mute-envelope is active
  • Mute Management: GetNextMuteState_TrackObject - returns now the mutestate, even if no mute-envelope is active
  • Mute Management: GetPreviousMuteState - returns now the mutestate, even if no mute-envelope is active
  • Mute Management: GetPreviousMuteState_TrackObject - returns now the mutestate, even if no mute-envelope is active; didn't return envIDX correctly -> fixed
  • Mute Management: ToggleMute - sets now mute-envelope point regardless of env-recarm or automation-mode; activates inactive mute-envelopes now as well
  • Mute Management: ToggleMute_TrackObject - sets now mute-envelope point regardless of env-recarm or automation-mode; activates inactive mute-envelopes now as well
  • Project Files: GetProject_MarkersAndRegions - supports now returning regions-states of selected and region render-matrix; fixed bugs with selected regions not recognized(thanks to aurelien)
  • Render: ApplyRenderTable_Project - had problem, when applied twice in a script -> fixed(thanks to aurelien)
  • Render: ApplyRenderTable_ProjectFile - had problem, when applied twice in a script -> fixed(thanks to aurelien)
  • SetRender_SaveCopyOfProject - got accidentally deleted, readded it now (thanks to aurelien)

Please update it via ReaPack using: https://github.com/Ultraschall/ultra..._api_index.xml
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-29-2020, 05:03 PM   #528
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

New huge update comin in soon...

If you have some bugs that need to be fixed before that, now is your chance.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-30-2020, 06:26 PM   #529
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Refining the last bits and pieces. Perfect time to tease you with new features:

First thing first.

This has been requested and I was stunned, that it's not existing yet:

Alias-renaming of FX-plugins. So I made such get/set-functions for TrackFX and TakeFX.

How does it look?



Trust me, you always wanted scrolltext in your fx-plugin's names ^^
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-30-2020, 06:30 PM   #530
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

This one resulted from a request on being able to programmatically set the default's theme-parameters, without having to use the theme-adjuster.

I made some functions to influence them.

AND

I made a theme-parameter-monitor, which not only displays the current values, but also, what has been changed by the theme-adjuster.
And of course you can change them in the monitor directly as well. That's part of properly fullfilled decadence XD




This works for all themes, who use theme-parameters, so it could be a cool debugging tool as well for theme-developers.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-30-2020, 06:34 PM   #531
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

And one for our metadata-fans. I made functions including documentation and validity-checks for the new metadata-features of Reaper.



Yes you could do it using Reaper's native functions, quite easily.

But why not using functions, who do the painful stuff for you: ^^
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-01-2020, 09:43 AM   #532
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

New release!

4.1.003 - "Premier" - 1st of July 2020

Has now 1200 functions, with 54 new ones

new in this release:
  • Theme Parameter Access and monitoring script
    Since Reaper 6, Cockos added the option of influencing a theme via so called theme-parameters. One such example is WhiteTie's Default Reaper6-Theme,
    which can be influenced via the theme-adjuster.
    And here's the thing: this can not only be influenced, it can also be programmed.
    So if you wanted to write scripts, who automatically adjust things without having to use the theme-adjuster, by using GetAllThemeLayoutParameters, ApplyAllThemeLayoutParameters, GetAllThemeLayoutParameters, GetThemeParameterIndexByDescription,
    GetThemeParameterIndexByName, SetThemeParameterIndexByDescription and SetThemeParameterIndexByName.
    And if you want to know, which theme-parameters can be set and which values are the right ones, the developer-package includes now a Theme-Parameter monitoring script.
    With that, you can see altered parameters(in Reaper's default v6 theme, for instance) and use the aforementioned functions to influence them accordingly.
    Just run the "Script: ultraschall_Add_Developertools_To_Reaper.lua"-script after installing the update and there you have it.
    One huge step into theme-customization...
  • MetaData
    Since Reaper has metadata-export-capabilities now, I've added nice and handy functions to get and set them, including docs and everything.
    The rendering-functions also allow now switching on the metadata-embedding, so there's no excuse anymore to not use it.
  • LangPack Compare-script
    This is probably useful for translators among you. I wrote a script, which compares two ReaperLangPack-files and returns the differences between the two into the clipboard.
    That way you can compare the most recent official LangPack with a former one and can see immediately, what has been added/altered and into where, so you can update your translation accordingly.
    Just run the "Script: ultraschall_Add_Developertools_To_Reaper.lua"-script after installing the update and there you have it.
  • Envelope Activation
    When working with envelopes, especially when scripting, you can not really work with envelopes, unless they are activated. Funny enough: there's no "Activate"Envelope"-function in Reaper's own API.
    So I tried to find ways around it.
    With ActivateEnvelope(good for send-envelopes), ActivateTrackPanEnv, ActivateTrackPreFXPanEnv, ActivateTrackPreFXVolumeEnv, ActivateTrackTrimVolumeEnv, ActivateTrackVolumeEnv you can activate most of
    the most important envelopes and therefore script them.
    Some are still missing, so I hope, I can add the missing ones too...
  • TrackManager
    It has been requested in the feature-request subforum and the general-forum: functions for the trackmanager.
    Thing is, it is quite useful, but there are simply no actions available for it, even though having shortcuts set to some of the basics can be very handy.
    So I added TrackManager_ClearFilter, TrackManager_OpenClose, TrackManager_ShowAll, TrackManager_SelectionFromProject, TrackManager_SelectionFromList, TrackManager_SetFilter who allow you to script many
    of the ui-elements of the track manager.
  • Lokasenna's Gui Lib v2
    now part of Ultraschall-API. Just run the function Lokasenna_LoadGuiLib_v2, which loads the GUI-Lib version deployed with Ultraschall-API including all its classes and the rest is the same as you are used to.
    There's nothing to worry, if you've already installed Lokasenna's GuiLib v2, as the version I deploy is independent of it.
    So you can safely use both on one system.
  • Ignore-Audio checkbox of video-items
    This is requested from time to time again, so I finally added it: the possibility to set the "ignore audio"-checkbox of a video-item.
    GetItem_Video_IgnoreAudio and SetItem_Video_IgnoreAudio are the functions of your choice.
  • Setting Aliasnames for FX-plugins
    Not available in the regular API, but in Ultraschall-API. This has been requested shortly before this release, a way to set the alternative/alias name of track and item-fx.
    A demofile US_Api_Examples_SetAliasNamesOfFX-Plugins.lua shows, what you can do with it...
  • SetTimeUnit
    Allows setting the timeunit of the transportfield, the ruler and the alternative ruler. Good for toggling through-actions...
  • Image Handling
    ResizeJPG, ConvertPNG2JPG and ConvertJPG2PNG give you more control over managing different image-files.
  • Bugfixes and other stuff
    For rendering, FXChains(as requested), updated nomenclature of functions, SLEM allows now getting more than just the last error-message, etc, etc



    New features in 4.1.003
  • Developer Tools: Developer LangPack - added developer-langpack for Reaper 6.12c
  • Developer Tools: ultraschall_developertool_Theme_Parameter_Monitor. lua - monitor and manipulate theme-parameters(like from the default Reaper6-theme)
  • Developer Tools: ultraschall_developertool_Compare_LangPacks.lua - allows you to select two ReaperLangPack-files and puts missing/changed entries from each file into the clipboard
  • Envelopes: ActivateEnvelope - activates an envelope, so it can be shown in the arrangeview(thanks to sexan; requested by daniellumertz)
  • Envelopes: ActivateTrackPanEnv - activates the pan-envelope lane of a track
  • Envelopes: ActivateTrackPanEnv_TrackObject - activates the pan-envelope lane of a trackobject
  • Envelopes: ActivateTrackPreFXPanEnv - activates the pre-fx-pan-envelope lane of a track
  • Envelopes: ActivateTrackPreFXPanEnv_TrackObject - activates the pre-fx-pan-envelope lane of a trackobject
  • Envelopes: ActivateTrackPreFXVolumeEnv - activates the pre-fx-volume-envelope lane of a track
  • Envelopes: ActivateTrackPreFXVolumeEnv_TrackObject - activates the pre-fx-volume-envelope lane of a trackobject
  • Envelopes: ActivateTrackTrimVolumeEnv - activates the trim-volume-envelope lane of a track
  • Envelopes: ActivateTrackTrimVolumeEnv_TrackObject - activates the trim-volume-envelope lane of a trackobject
  • Envelopes: ActivateTrackVolumeEnv - activates the volume-envelope lane of a track
  • Envelopes: ActivateTrackVolumeEnv_TrackObject - activates the volume-envelope lane of a trackobject
  • Envelopes: GetTakeEnvelopeUnderMouseCursor - returns the take-envelope currently under the mouse
  • FXManagement: GetTakeFX_AlternativeName - gets the alternative/aliasname of a takefx(requested by dimtok)
  • FXManagement: GetTrackFX_AlternativeName - gets the alternative/aliasname of a trackfx(requested by dimtok)
  • FXManagement: SetTakeFX_AlternativeName - sets the alternative/aliasname of a takefx(requested by dimtok)
  • FXManagement: SetTrackFX_AlternativeName - sets the alternative/aliasname of a takefx(requested by dimtok)
  • GUI: Lokasenna's Gui Lib v2 - added his Gui-Lib v2 into Ultraschall-API; will not affect other possible GuiLib-installations on the current Reaper-installation
  • GUI: Lokasenna_LoadGuiLib_v2 - loads Lokasennas Gui-Lib and all available classes into your script
  • Image Handling: ResizeJPG - resizes jpgs to new jpgs
  • Image Handling: ConvertPNG2JPG - converts png into jpg
  • Image Handling: ConvertJPG2PNG - converts jpg into png
  • MediaItem Management: GetItem_Video_IgnoreAudio - gets the current state of the ignore audio-checkbox of a video-source of a MediaItem's take(requested by earhax)
  • MediaItem Management: SetItem_Video_IgnoreAudio - sets the state of the ignore audio-checkbox of a video-source of a MediaItem's take(requested by earhax)
  • Metadata Management: Metadata_BWF_GetSet - gets, sets BWF-metadata-tags from/in the current project
  • Metadata Management: Metadata_CART_GetSet - gets, sets CART-metadata-tags from/in the current project
  • Metadata Management: Metadata_CUE_GetSet - gets, sets CUE-metadata-tags from/in the current project
  • Metadata Management: Metadata_ID3_GetSet - gets, sets ID3-metadata-tags from/in the current project
  • Metadata Management: Metadata_INFO_GetSet - gets, sets INFO-metadata-tags from/in the current project
  • Metadata Management: Metadata_IXML_GetSet - gets, sets IXML-metadata-tags from/in the current project
  • Metadata Management: Metadata_VORBIS_GetSet - gets, sets VORBIS-metadata-tags(for Opus/Ogg-files) from/in the current project
  • Render Management: GetRender_AddRenderedFilesToProject - gets the checkbox-state for add rendered items to new tracks in project-checkbox in the Render to File-dialog
  • Render Management: GetRender_EmbedMetaData - gets the checkbox-state for embed-metadata in the Render to File-dialog
  • Render Management: GetRender_NoSilentFiles - gets the checkbox-state for "Do not render files that are likely silent"-checkbox in the Render to File-dialog
  • Render Management: GetRender_TailLength - gets the current taillength, as set in the Render to File-dialog
  • Render Management: SetRender_AddRenderedFilesToProject - gets the checkbox-state for add rendered items to new tracks in project-checkbox in the Render to File-dialog
  • Render Management: SetRender_EmbedMetaData - sets the checkbox for embed-metadata in the Render to File-dialog
  • Render Management: SetRender_NoSilentFiles - sets the checkbox-state for "Do not render files that are likely silent"-checkbox in the Render to File-dialog
  • Render Management: SetRender_TailLength - sets the current taillength, as set in the Render to File-dialog
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-01-2020, 09:43 AM   #533
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

  • Theme Management: ApplyAllThemeLayoutParameters - applies changes theme-layout parameters to the current theme; use GetAllThemeLayoutParameters to get an alterable table
  • Theme Management: GetThemeParameterIndexByDescription - gets the theme parameter's values by its description
  • Theme Management: GetThemeParameterIndexByName - gets the theme parameter's values by its name
  • Theme Management: SetThemeParameterIndexByDescription - sets the theme parameter's values by its description
  • Theme Management: SetThemeParameterIndexByName - sets the theme parameter's values by its name
  • Track Management: GetAllVisibleTracks_Arrange - returns all tracks currently visible in viewable part of the arrange-view
  • Track Manager: TrackManager_ClearFilter - clears the filter of the opened track manager(requested by Monomirror)
  • Track Manager: TrackManager_OpenClose - open, closes and toggles opening of the track manager(requested by Monomirror)
  • Track Manager: TrackManager_ShowAll - shows all tracks of the opened track manager(requested by Monomirror)
  • Track Manager: TrackManager_SelectionFromProject - sets the selection of the opened track manager to the track-selection of the project(requested by Monomirror)
  • Track Manager: TrackManager_SelectionFromList - sets the track-selection of the project into the track-selection of the opened track manager(requested by Monomirror)
  • Track Manager: TrackManager_SetFilter - sets the filter of the opened track manager(requested by Monomirror)
  • User Interface: GetTrackManagerHWND - gets the tcp of the trackmanager, if opened
  • User Interface: SetTimeUnit - sets the timeunit for transport, ruler and secondary ruler
  • User Interface: TCP_SetWidth - allows setting a new width of the tcp(initial code by amagalma, thanks for that )
  • Video Management: ProjectSettings_GetVideoFramerate - gets the currently set project's video-framerate
  • Video Management: ProjectSettings_SetVideoFramerate - sets the currently set project's video-framerate and optionally the default for new projects

    Changes from 4.1.002 to 4.1.003
  • API: Requirements - requires now JS-extension 1.215
  • API: titles will now be references to FarScape-episode-titles, until I conquered the farscape of Gui-development
  • Docs: GetRender_AutoIncrementFilename - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_EmbedMetaData - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_EmbedStretchMarkers - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_NoSilentFiles - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_OfflineOnlineMode - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_ProjectSampleRateForMix - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_QueueDelay - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_ResampleMode - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: GetRender_SaveCopyOfProject - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: Reaper Internals - updated to Reaper 6.12, fixed nonconverted markdown-links
  • Docs: SetRender_AutoIncrementFilename - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_EmbedMetaData - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_EmbedStretchMarkers - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_NoSilentFiles - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_OfflineOnlineMode - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_ProjectSampleRateForMix - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_QueueDelay - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_ResampleMode - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • Docs: SetRender_SaveCopyOfProject - moved in the index to Rendering Projects -> Render Settings, where I would expect such functions
  • GFX: GFX_Init - produced nil-error, when the optional-parameters weren't set due missing default-values on my side -> fixed
  • Error Management: error-messages - optional boolean errormessages include now, which is the default value when using nil
  • Error Management: ShowLastErrorMessage - allows now to access the messages before the last one as well
  • Error Management: SLEM - allows now to access the messages before the last one as well
  • Envelopes: ActivateMute - had wrong returnvalue in errormessages for parameter track -> fixed
  • Envelopes: DeactivateMute - had wrong returnvalue in errormessages for parameter track -> fixed
  • FXManagement: GetFXStateChunk - had numerous problems so I reimplemented it from scratch; returns now the linenumber at which the found FXStateChunk starts in the passed StateChunk
  • Helper functions: OpenURL - didn't work on Linux -> fixed
  • MediaItem Management: SelectMediaItems_MediaItemArray - updates now arrangeview, so selected items are now visible as such
  • ReaMote: AutoSearchReaMoteClients - renamed from AutoSearchReaMoteSlaves; the old name is still available but deprecated
  • Render Management: AddRenderPreset - added option for embed-metadata-checkbox
  • Render Management: ApplyRenderTable_Project - added option for embed-metadata-checkbox
  • Render Management: ApplyRenderTable_ProjectFile - added option for embed-metadata-checkbox
  • Render Management: CreateNewRenderTable - added option for embed-metadata-checkbox
  • Render Management: GetRenderTable_Project - added option for embed-metadata-checkbox
  • Render Management: GetRenderTable_ProjectFile - added option for embed-metadata-checkbox
  • Render Management: GetRenderPreset_RenderTable - added option for embed-metadata-checkbox
  • Render Management: GetRenderToFileHWND - didn't return render to file-dialog-hwnd on recent Reaper-versions -> fixed
  • Render Management: IsValidRenderTable - added option for embed-metadata-checkbox
  • Render Management: RenderProject_RenderTable - added option for embed-metadata-checkbox
  • Render Management: SetRenderPreset - added option for embed-metadata-checkbox
  • Routing Management: GetAllAUXSendReceives - could produce a nil-error and returned wrong track-guid, PLEASE CHECK, IF YOUR ROUTING-CODE IS BUGGY NOW AND REPORT BACK2ME, Thanx! -> fixed
  • TrackGroups: GetTrackGroupFlagsState - updated nomenclature to Reaper's new one
  • TrackGroups: GetTrackGroupFlags_HighState - updated nomenclature to Reaper's new one
  • TrackGroups: SetTrackGroupFlagsState - updated nomenclature to Reaper's new one
  • TrackGroups: SetTrackGroupFlags_HighState - updated nomenclature to Reaper's new one
  • Theme Management: GetAllThemeLayoutNames - didn't return themelayout index 0 -> fixed
  • Theme Management: GetAllThemeLayoutParameters - didn't return themeparameter index 0; had off-by-one error in retval index -> fixed
  • User Interface: GetHWND_ArrangeViewAndTimeLine - returns now tracklistwindow-tcp as well; didn't find TCP-hwnd when TCP was on the right side of the arrange-view -> fixed(thanks to Edgemeal)

Please update it via ReaPack using: https://github.com/Ultraschall/ultra..._api_index.xml
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-01-2020, 05:53 PM   #534
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Another question: would anyone of you want to have functions for dealing with take-markers in a more extensive way than the native functions allow? Export/Import for instance?
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-05-2020, 09:16 PM   #535
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 280
Default

Hi Mespotine, thanks for all the help here in the forum , this is probably a FAQ but if someone tries to run a script I made with your API how can I make to show a message to he/she download it?



I imagine I have to put an if condition after
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")
In case this file don't exist....

Last edited by daniellumertz; 07-05-2020 at 10:21 PM. Reason: I write first "I made without your API" what I wanted to write is "with your API"
daniellumertz is online now   Reply With Quote
Old 07-05-2020, 09:45 PM   #536
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,584
Default

Quote:
MetaData

This uses render right ? Or is it data injection as in my BWF scripts ?

PS : very impressive all these new functions... you are way advanced on your time ! :P
X-Raym is offline   Reply With Quote
Old 07-06-2020, 01:01 AM   #537
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Quote:
Originally Posted by X-Raym View Post
This uses render right ? Or is it data injection as in my BWF scripts ?

PS : very impressive all these new functions... you are way advanced on your time ! :P
Yes, they get/set the fields in the Edit-Metadata-dialog of Render to File, so they are put into the file after rendering.

I have more stuff to go. One thing that almost made it in this version(so I'm teasing here right now ^^ ) is programming the batch-file-converter.
According to schwa, this also supports setting metadata to already existing files, so if I can make this work, I'll add metadata-export for already rendered files as well.

Edit: btw, if I remember correctly, you had problems with using FXStateChunks as some of these functions were buggy. If yes, could you give them another try? I fixed numerous noob-bugs (or better, I got rid of them by completely reimplementing some functions ) so the functions should now be more stable.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish

Last edited by Meo-Ada Mespotine; 07-06-2020 at 01:07 AM.
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-06-2020, 01:06 AM   #538
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Quote:
Originally Posted by daniellumertz View Post
Hi Mespotine, thanks for all the help here in the forum , this is probably a FAQ but if someone tries to run a script I made with your API how can I make to show a message to he/she download it?



I imagine I have to put an if condition after
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")
In case this file don't exist....
Code:
if reaper.file_exists(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")==false then
  reaper.MB("Sorry, needs Ultraschall-API to work", "Missing extension", 0)
  return
end
I'll add a template-script, which does the checks for you at some point, but hadn't the time to do it yet.
This template-script will not only check, if Ultraschall-API is existing but also if it's the right version, so you can request a certain minimum version.

I may add that for other extensions and Reaper as well, so you can check for the right versions of everything. Needs some more time til I'm finished with it.

XRaym also has some scripts, who use Ultraschall-API, so he can probably show you, how he's done it, including a way of giving the user the ReaPack-index-file-url so it can be installed quite quickly.

I may think about adding a "Do you want to install Ultraschall-API via ReaPacj"-feature as well in my template script, but again, this needs some more time to work as flawlessly and stable as possible.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-06-2020, 03:20 PM   #539
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 280
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
XRaym also has some scripts, who use Ultraschall-API, so he can probably show you, how he's done it, including a way of giving the user the ReaPack-index-file-url so it can be installed quite quickly.
.
That seems cool, if I know the name of the scripts I could study it, and if X-raym allow use it heheh


Thanks the code works!
I think I finished my first script may post this or next week in the forum, will test it a little more. ( is just an script to accelerate the process of sending tracks to a bus for selected amount of time, copying the automation in volume and pan to the send automation (as most of my mixes involves a lot of automation ))
daniellumertz is online now   Reply With Quote
Old 07-06-2020, 04:24 PM   #540
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 534
Default

By the way, is it just me or are all the links from your first post broken?
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11, MBP 15" 2012 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, SD2, Omnisphere, Wave Altiverb, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is offline   Reply With Quote
Old 07-07-2020, 05:31 AM   #541
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

O_O

Will investigate this...hold on...

Edit: fixed. Thanks lexaproductions
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish

Last edited by Meo-Ada Mespotine; 07-07-2020 at 05:37 AM.
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-08-2020, 01:53 PM   #542
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

New Hotfix available:
  • Examplescripts: US\_Api\_Examples\_Render\_Current\_Project.lua - updated to the more recent rendering-functions(used the first and outdated ones)
  • Examplescripts: US\_Api\_Examples\_Render\_Project.lua - updated to the more recent rendering-functions(used the first and outdated ones)
  • Examplescripts: US\_Api\_Examples\_Render\_Region\_of\_current\_Pr oject.lua - updated to the more recent rendering-functions(used the first and outdated ones)
  • Rendering: RenderProject - produced error, when a project's timeselection start&end where stored "backwards"; rendercfg for secondary rendering didn't work and caused havoc in numerous functions -> fixed (thanks to elzoido)

Please update your ReaPacks...
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-08-2020, 09:01 PM   #543
Anton9
Human being with feelings
 
Anton9's Avatar
 
Join Date: Jun 2009
Location: Earth
Posts: 1,338
Default

Just a friendly bump for this.., it's been almost a year.
https://forum.cockos.com/showpost.ph...&postcount=270

Also still no SetParmMIDIPLink_FXStateChunk ?
Would be nice to have an "Add" version as well for when there is not an entry already present.

Oh, by the way, the Render Management stuff is really nice!

Thanks
Anton9 is offline   Reply With Quote
Old 07-09-2020, 02:35 AM   #544
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

I still have it on my mind and theoretically it's not a problem.
I just have the difficulty deciding how the parameters should be designed.

There are basically three parts of ParameterModulation(as you can see in the dialog of it) and they are stored in one datastructure in tracks altogether.

So what I want is three functions who represent the three parmmods, but managing the parsing and altering the data structure is a real mess.

I could make it work by just making one function for all parmmodulation but this would mean dozens of parameters who all need to be set.
So even if you don't need LFO, you would need to set it and, to be able to set it, you would always need to get all the attributes before that.
This would be a mess for you to handle but make it possible for me to handle the difficult datastructure.

So it's more like, three handy set-functions that I couldn't handle or one parmmodulation-function, that you couldn't handle.

It's complicated and I'm not happy with all my ideas so far...
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-09-2020, 05:08 AM   #545
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Thinking about it some more, I could use an attempt, that would work like RenderTables for the rendering-functions, means: you have a table, with all possible settings for parmmodulation and you set it as you wish and commit it to the track somehow.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-09-2020, 06:12 AM   #546
aurelien
Human being with feelings
 
Join Date: Apr 2014
Posts: 48
Default

Hi mespotine , just updated your lib, small bug in ultraschall_functions_Render_Module.lua

You forgot to test if EmbedMetadata was null or not in CreateNewRenderTable, hence making the function unusable

It was :
PHP Code:
  if  type(EmbedMetadata)~="boolean" then ultraschall.AddErrorMessage("CreateNewRenderTable""CloseAfterRender""#28: must be a boolean", -30) return end 
Should be :

PHP Code:
  if EmbedMetadata~=nil and type(EmbedMetadata)~="boolean" then ultraschall.AddErrorMessage("CreateNewRenderTable""CloseAfterRender""#28: must be a boolean", -30) return end 
Thanks,

Last edited by aurelien; 07-09-2020 at 06:17 AM.
aurelien is offline   Reply With Quote
Old 07-09-2020, 10:28 AM   #547
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Ah, thanks. Will fix it when I'm back home.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-09-2020, 03:47 PM   #548
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Hotfix 2 - 10th of July 2020

Changes:
- Rendering: CreateNewRenderTable - did not allow EmbedMetadata being optional -> fixed(thanks to aurelien)

Please update your ReaPacks
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-09-2020, 10:55 PM   #549
Anton9
Human being with feelings
 
Anton9's Avatar
 
Join Date: Jun 2009
Location: Earth
Posts: 1,338
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Thinking about it some more, I could use an attempt, that would work like RenderTables for the rendering-functions, means: you have a table, with all possible settings for parmmodulation and you set it as you wish and commit it to the track somehow.
That actually sounds like it could be a pretty good idea.., maybe try it and see how it goes.

Thanks
Anton9 is offline   Reply With Quote
Old 07-10-2020, 04:38 AM   #550
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 658
Default

Hotfix 3: 10th of July 2020

Hotfixes seems to be not available for some reason so I remade the hotfix and it should work now definitely.

Please update your ReaPacks...

@Anton9
Ok, I will think about how to do it that way. This approach could be a good way for the future, when the devs may add new options as well...
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1200 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-10-2020, 07:46 PM   #551
Anton9
Human being with feelings
 
Anton9's Avatar
 
Join Date: Jun 2009
Location: Earth
Posts: 1,338
Default

Awesome I'll look forward to it.

Thanks
Anton9 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 11:26 PM.


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