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

Reply
 
Thread Tools Display Modes
Old 07-08-2022, 09:48 AM   #761
aurelien
Human being with feelings
 
Join Date: Apr 2014
Posts: 95
Default

No problem, take care!!
aurelien is offline   Reply With Quote
Old 07-08-2022, 12:30 PM   #762
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Thnx, will fix this in the next release beginning of August(currently recovering from a surgery, so things are slower currently).
oh, get well soon Mespotine, cheering for your recover !
daniellumertz is offline   Reply With Quote
Old 10-26-2022, 11:30 AM   #763
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

## Ultraschall Framework - Changelog

4.7 - "Pearl Jam - Alive" - 16th of October 2022

Has now 1590 functions, with 58 new ones

new in this release:
  • Marker Menu
    You can code now your own left-click marker-context-menus. Add Entries with MarkerMenu_InsertEntry and MarkerMenu_InsertEntry_DefaultMarkers
    and start the menu with MarkerMenu_Start. You can add new menuentries or remove them during runtime. So if you add a new marker-menu-entry, it will
    be shown in the menu the next time the user hits left-click on a marker.
    And: you can create menus for custom markers as well. So a custom marker called _ShowNote: can have a different menu than _AliceInWonderland:
    It also includes regions.
    And action-marker.
  • ShowNote/Podcast Metadata
    Relevant for podcasting use-cases, you can now add metadata to shownote/normal-markers as well as podcast/podcast-episode metadata.
    Future versions will include export functions for putting them into the mediafile's metadata.
  • EventManager - Debug
    New features for debugging EventManager stuff, like getting additional states and execution-times. So you can check for performance.
    And if you don't want to code one yourself: there's a EventManager monitoring-script in the developer-tools, which shows you the
    execution-times for each check-function-cycle AND the time from after the end of the execution-time until the next one.
    This allows you to tweak performance for your check-functions. The monitoring-tool even gives you a hint, how low the execution-times
    must be for Reaper's UI not lagging.
  • Get Project-time by MediaSource-time and the other way round
    Get the exact project position from a given source-position or the exact source-position from a project-position.
    So inserting take-markers at project-position is now possible. Or other cool stuff, where you need to convert the
    project-position into take-position.
  • ScaleFromDPIFromScale
    You can convert now the dpi-value currently set into its corresponding scale-value vice versa. With that, you can always scale
    your script's ui properly.
  • Base64De/Encoder, ASCII2HEX2ASCII-enocders
    Used to be slow on bigger strings. Not anymore. Sped up by magnitudes...
  • Create/Get-Render-CFG-functions
    FFMPEG-support added, NONE as video/audio-format added, wmf-support added
  • Render functions
    Support now marker-rendering and fade-in/out-feature
  • Bugfixes Bugfixes Bugfixes

New features in 4.7
  • DeveloperTools: FindCurrentlyUsedExtstatesNamesInAFile - looks through a selected file and checks, whether its strings are currently used extstates
  • DeveloperTools: Monitor Eventmanager - monitors the performance and some attributes of the Eventmanager, so you can optimize the registered events(requested by rstockm)
  • DeveloperTools: MonitorRenderTable - monitors the entries of a RenderTable for the currently opened project
  • EventManager: EventManager_Debug_GetAllActionRunStates - returns a table of, if the actions of a registered event were run in the last event-check-cycle or not
  • EventManager: EventManager_Debug_GetExecutionTime - when debugmode is on, allows to get, how long the last run of checking for events did take in seconds(for benchmarking your eventcheck functions) - requested by rstockm
  • EventManager: EventManager_GetAllEventIdentifier - returns a table with all event-identifiers of all currently registered events
  • EventManager: EventManager_GetAllEventNames - returns a table with all event-names of all currently registered events
  • EventManager: EventManager_GetEventPausedState - returns the paused states of a currently registered event
  • FXManagement: GetFXByGuid - gets a fx by its guid
  • FXManagement: TrackFX_GetAllGuidsFromAllTracks - returns all guids from all tracks of the current project
  • FXManagement: TakeFX_GetAllGuidsFromAllTakes - returns all guids from all takes of the current project
  • MarkerManagement: GetMarkerType - returns the type of a marker
  • MarkerManagement: GetGuidFromCustomMarkerID - returns the guid from a custom-marker-index
  • MarkerManagement: GetGuidFromCustomRegionID - returns the guid from a custom-region-index
  • MarkerManagement: GetCustomMarkerIDFromGuid - returns the custom-marker-index and name from a guid
  • MarkerManagement: GetCustomRegionIDFromGuid - returns the custom-region-index and name from a guid
  • MarkerManagement: MarkerMenu_GetLastClickState - gets the last clickstate, when someone has clicked markers/regions with markermenu running
  • MarkerManagement: MarkerMenu_GetLastTouchedMarkerRegion - gets the last clicked marker/region with markermenu running
  • MarkerManagement: MarkerMenu_CountEntries - counts the number of entries in the markermenu for a specific custom marker/region
  • MarkerManagement: MarkerMenu_CountEntries_DefaultMarkers - counts the number of entries in the markermenu for a specific default marker/region
  • MarkerManagement: MarkerMenu_Debug - shows in the ReaScript-console debug-messages like the right-clicked-marker-type, when using the marker/region-hijack-script(see MarkerMenu_Start)
  • MarkerManagement: MarkerMenu_GetAvailableTypes - gets the marker- and region-types, that are currently added to the marker-menu
  • MarkerManagement: MarkerMenu_GetEntry - gets the action and description of a marker-entry for a certain custom-marker/region-type
  • MarkerManagement: MarkerMenu_GetEntry_DefaultMarkers - gets the action and description of a marker-entry for a certain default-marker/region-type from Ultraschall
  • MarkerManagement: MarkerMenu_GetLastClickedMenuEntry - gets the last clicked marker-menu-entry, including name, position, additional data and marker-type
  • MarkerManagement: MarkerMenu_InsertEntry - inserts a new marker-entry into the marker menu for a custom marker/region
  • MarkerManagement: MarkerMenu_InsertEntry_DefaultMarkers - inserts a new marker-entry into the marker menu for markers/regions of Ultraschall
  • MarkerManagement: MarkerMenu_RemoveEntry - removes the action and description of a marker-entry for a certain custom-marker/region-type
  • MarkerManagement: MarkerMenu_RemoveEntry_DefaultMarkers - removes the action and description of a marker-entry for a certain default-marker/region-type from Ultraschall
  • MarkerManagement: MarkerMenu_RemoveSubMenu - removes a submenu from the marker-menu of a specific custom-marker/region
  • MarkerManagement: MarkerMenu_RemoveSubMenu_DefaultMarkers - removes a submenu from the marker-menu of a specific default marker/region
  • MarkerManagement: MarkerMenu_SetEntry - gets the action and description of a marker-entry for a certain custom-marker/region-type
  • MarkerManagement: MarkerMenu_SetEntry_DefaultMarkers - sets the action and description of a marker-entry for a certain default-marker/region-type from Ultraschall
  • MarkerManagement: MarkerMenu_SetStartupAction - sets a startup-action in the markermenu for a specific custom marker/region
  • MarkerManagement: MarkerMenu_SetStartupAction_DefaultMarkers - sets a startup-action in the markermenu for a certain default-marker/region-type from Ultraschall
  • MarkerManagement: MarkerMenu_Start - starts a background-script that hijacks the marker-context-menu when rightclicking markers/regions
  • MarkerManagement: MarkerMenu_Stop - stops the background-script that hijacks the marker-context-menu when rightclicking markers/regions
  • MarkerManagement: RenumerateNormalMarkers - renumerates the shown-number of all normal-markers
  • MarkerManagement: RenumerateShownoteMarkers - renumerates the shown-number of all shownote-markers
  • MediaItem_Takes: GetProjectPosByTakeSourcePos - gets the project-position of a take's source-position, obeying stretch-markers, offset, etc
  • MediaItem_Takes: GetTakeSourcePosByProjectPos - gets the source-position of a take by the project-position, obeying stretch-markers, offset, etc
  • MediaItemManagement: ToggleCrossfadeStateForSplits - toggles/sets the option for crossfades on splits of MediaItems
  • Navigation: GetNextClosestItemEnd - gets the next closest item-end within given tracks and from a specific position(requested by Moritz Klenk)
  • Navigation: GetNextClosestItemStart - gets the next closest item-start within given tracks and from a specific position(requested by Moritz Klenk)
  • Navigation: GetPreviousClosestItemEnd - gets the previous closest item-end within given tracks and from a specific position(requested by Moritz Klenk)
  • Navigation: GetPreviousClosestItemStart - gets the previous closest item-start within given tracks and from a specific position(requested by Moritz Klenk)
  • PodcastMetadata: GetSetChapterMarker_Attributes - gets/sets metadata-attributes of a chapter-marker(using Ultraschall 4+ methods)
  • PodcastMetadata: GetSetPodcast_Attributes - gets/sets metadata-attributes of a podcast
  • PodcastMetadata: GetSetPodcastEpisode_Attributes - gets/sets metadata-attributes of a podcast-episode
  • PodcastMetadata: GetSetShownoteMarker_Attributes - gets/sets additional attributes of a shownote-marker
  • Rendering: ResolvePresetName - resolves the name of a preset into the correct case-sensitivity, as stored in reaper-render.ini
  • Ultraschall: LUFS_Metering_AddEffect - adds the Ultraschall's LUFS Loudness Metering-JSFX
  • Ultraschall: LUFS_Metering_GetValues - gets currently measured LUFS-values of Ultraschall's LUFS Loudness Metering-JSFX, when running
  • Ultraschall: LUFS_Metering_MatchGain - hits programmaticaly the "Match Gain"-button of Ultraschall's LUFS Loudness Metering-JSFX, when running
  • Ultraschall: LUFS_Metering_Reset - resets the measuring of Ultraschall's LUFS Loudness Metering-JSFX, when running
  • Ultraschall: LUFS_Metering_SetValues - sets LUFS-target/Gain-values of Ultraschall's LUFS Loudness Metering-JSFX, when running
  • Ultraschall: LUFS_Metering_ShowEffect - shows the Ultraschall's LUFS Loudness Metering-JSFX, when running
  • UserInterface: GetReaperWindow_Position - returns the Reaper-window-position and various of its elements
  • UserInterface: GetScaleRangeFromDpi - returns the scale-range a certain dpi-value has
  • UserInterface: GetDpiFromScale - returns the dpi for a specific scale
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-26-2022, 11:31 AM   #764
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

  • Changes from 4.6 to 4.7
  • API: cleanup - a lot of cleanup in codebase and improvements in stability for future enhancements
  • API: Modulator3000 - readded api-load-speedup after I found out how to circumvent a bug in Reaper's Lua-implementation
  • DeveloperTools: Create new script with dialog - allows now opening/adding already existing scripts; default path for scripts without path is now scripts-folder; scripts can also be copied from a different source into the scriptsfolder and then added(will only copy the chosen file, not possibly other ones!)
  • DeveloperTools: GetPitchShiftModes - improved layout; crashed in my parser due addition of Rrreeeaaa -> fixed
  • DeveloperTools: ItemStateChunk from Clipboard to item under mouse - copied statechunk into clipboard instead of setting it oooppsss -> fixed
  • DeveloperTools: LangPack2Developer_langpack_converter - shows now conversion progress in ReaScript-console
  • DeveloperTools: MonitorParmModulation - did crash, when a parameter-modulation was added after monitoring started -> fixed
  • DeveloperTools: SortLinesInClipboardText - lost the last line before sorting -> fixed
  • DeveloperTools: Theme Parameter Monitor - updates now the list immediately, when the current theme is changed
  • DeveloperTools: Trackstatechunk from clip to track under mouse - copied trackstatechunk into clipboard instead of setting it -> fixed
  • Docs: Reaper Internals - updated to Reaper 6.68 and ReaImGui 0.6.2, added the various misc-docs to a dedicated page in Reaper-Internals
  • Docs: render-strings - updated to Reaper 6.62(includes wmf now and FFMPEG-command-line-options)
  • Docs: misc_docs-folder/Reaper-Render-Strings-docs_Jul2018.txt - removed, due being outdated
  • EventManager: EventManager_GetLastCheckfunctionState2 - improved speed
  • EventManager: main script - stopping the eventmanager could have lead to an error message -> fixed(thanks to rstockm)
  • HelperFunctions: Base64_Decoder - sped up massively for longer strings(up to 94% faster)
  • HelperFunctions: Base64_Encoder - sped up massively for longer strings(up to 90% faster)
  • HelperFunctions: ConvertAscii2Hex - sped up massively for longer strings
  • HelperFunctions: ConvertHex2Ascii - sped up massively for longer strings
  • Helperfunctions: OpenURL - did return true in case of success, though the docs state integer should be returned -> fixed now, returns 1
  • MarkerManagement: AddEditMarker - added guid to name due old code forgotten to remove; some improvements on edittitle -> fixed now
  • MarkerManagement: AddNormalMarker - adds a unique guid for this marker to be used for chapters markers in export
  • MarkerManagement: AddShownoteMarker - adds a unique guid for this shownote to be used in export
  • MarkerManagement: DeleteNormalMarker - did not correctly delete the first normal marker, when it was the first one in the project -> fixed
  • MarkerManagement: EnumerateEditMarker - some improvements on edittitle
  • MarkerManagement: GetMarkerByScreenCoordinates - returns now an additional retval with the marker-number(s); takes now scale-factor into account
  • MarkerManagement: GetMarkerByTime - returns now an additional retval with the marker-number(s); takes now scale-factor into account
  • MarkerManagement: GetRegionByScreenCoordinates - returns now an additional retval with the region-number(s)
  • MarkerManagement: GetRegionByTime - returns now an additional retval with the region-number(s); takes now scale-factor into account
  • MarkerManagement: GetShownoteMarkerIDFromGuid - did add error-messages to the error-messaging system without needing this -> fixed
  • MarkerManagement: GetTemporaryMarker - marker_id should be 0-based -> fixed
  • MarkerManagement: IsMarkerShownote - returns now the shownote-index as well
  • MarkerManagement: SetEditMarker - some improvements on edittitle
  • MarkerManagement: SetShownoteMarker - allows now setting the shown_number of a shownote as well
  • MarkerManagement: StoreTemporaryMarker - supports now different positions(editcursor, play, mouse-position) to get the marker to store from; marker_id should be 0-based -> fixed
  • MediaItemManagement: InsertMediaItemFromFile - rewritten from scratch and should work properly now; supports now insertion into last touched track and setting looped/locked state
  • MediaItemManagement: RippleCut - supports now optional parameter to add crossfade to the edit(requested by NiklasM)
  • MetaData: GetGuidExtState - didn't store extstates, when not using a guid as key -> fixed
  • MetaData: SetGuidExtState - didn't store extstates, when not using a guid as key -> fixed
  • Navigation: GetClosestNextMarker - didn't return the index but rather shown number instead; returns now also shown number officially -> fixed
  • Navigation: GetClosestNextRegionEdge - didn't return the index but rather shown number instead; returns now also shown number officially -> fixed
  • Navigation: GetClosestPreviousMarker - didn't return the index but rather shown number instead; returns now also shown number officially -> fixed
  • Navigation: GetClosestPreviousRegionEdge - didn't return the index but rather shown number instead; returns now also shown number officially -> fixed
  • ProjectManagement: GetProjectStateChunk - didn't work under certain circumstances on Linux/Mac -> fixed
  • ProjectManagement: GetProject_Render_Normalize - supports now fade_in and fade_out rendering-modes
  • ProjectManagement: SetProject_Render_Normalize - supports now fade_in and fade_out rendering-modes
  • Rendering: AddRenderPreset - TailMS supported now as of Reaper 6.62+; supports now FadeIn/Out and marker-rendering
  • Rendering: ApplyRenderTable_Project - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: ApplyRenderTable_ProjectFile - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: CreateNewRenderTable - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: CreateRenderCFG_AVI_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec; corrected docs
  • Rendering: CreateRenderCFG_FLV_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: CreateRenderCFG_MKV_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: CreateRenderCFG_MPEG1_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: CreateRenderCFG_MPEG2_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec; corrected docs
  • Rendering: CreateRenderCFG_QTMOVMP4_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: CreateRenderCFG_WebMVideo - renamed to CreateRenderCFG_WebM_Video(old functionname still available); supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: CreateRenderCFG_WMF_Video - renamed to CreateRenderCFG_WMF (old functionname is still available, though)
  • Rendering: GetRender_AutoIncrementFilename - always returned true, when Render to File was closed -> fixed(thnx to aurelien)
  • Rendering: GetRenderCFG_Settings_AVI_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_FLV_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_MKV_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_MPEG1_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_MPEG2_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_QTMOVMP4_Video - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderCFG_Settings_WebMVideo - supports now audio/video FMPEG-export options; supports now NONE as Audio/VideoCodec
  • Rendering: GetRenderPreset_RenderTable - TailMS supported now as of Reaper 6.62+; marker rendering and fade in/out supported; bounds and options-name are now case-insensitive -> (thanx to Malik)
  • Rendering: GetRenderTable_ProjectDefaults - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: GetRenderTable_Project - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: GetRenderTable_ProjectFile - supports now marker-rendering as well as fade-in/fade-out
  • Rendering: DeleteRenderPreset_Bounds - bounds-name is now case-insensitive -> (thnx to Malik)
  • Rendering: DeleteRenderPreset_FormatOptions - options-name is now case-insensitive -> (thnx to Malik)
  • Rendering: IsValidRenderTable - supports now FadeIn/Out and marker-rendering
  • Rendering: RenderProject_RenderTable - didn't increment filename when rendering filename under certain circumstances -> fixed (thnx to aurelien)
  • Rendering: SetRenderPreset - TailMS supported now as of Reaper 6.62+; supports now FadeIn/Out and marker-rendering; bounds and options-name are now case-insensitive -> (thnx to Malik)
  • UltraschallConfigFiles: GetUSExternalState - did return nil when file did not exist, though docs claimed "" -> fixed
  • UserInterface: SetUIScale - allows now for scaling higher than 2000
  • UserInterface: ShowMenu - did only open once in a script though it should open multiple times -> fixed



Please update it via ReaPack using: https://github.com/Ultraschall/ultra..._api_index.xml
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-26-2022, 11:32 AM   #765
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Quote:
Originally Posted by Gandhi360 View Post
Hey there! Just wanted to throw in the reminder you mentioned. I hope life got a bit easier for you over the last few weeks but if there is still a lot going on, please do not feel pressured and take the time you need!
Hey, I totally forgot about your issue. Had real bad health-problems in the last few months so it got swept under.

I put it on my ToDo-List for the next release...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-26-2022, 11:39 AM   #766
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 360
Default

During updates I get the following every time.

https://raw.githubusercontent.com/Ul...tem_mouse.lua:
HTTP response code said error (22): The requested URL returned error: 404

Warren
WarrenG is offline   Reply With Quote
Old 10-26-2022, 11:58 AM   #767
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Can you try again and see, if it's fixed?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-26-2022, 12:08 PM   #768
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 360
Default

Sorry tried a few times with the same error, maybe Reapack has not updates yet I will try again in about ten minutes.

Warren
WarrenG is offline   Reply With Quote
Old 10-26-2022, 12:09 PM   #769
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Ah, yeah, sometimes GitHub needs a moment to refresh the files...

Edit: It should work now...I hope...

No idea, why the bug happened....
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 10-26-2022 at 12:19 PM.
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-26-2022, 12:23 PM   #770
WarrenG
Human being with feelings
 
WarrenG's Avatar
 
Join Date: Jan 2020
Location: In the studio at my desk
Posts: 360
Default

That did it!!

Thank you, look forward to trying the updates.

Warren
WarrenG is offline   Reply With Quote
Old 10-27-2022, 09:12 AM   #771
Gandhi360
Human being with feelings
 
Join Date: Apr 2022
Posts: 4
Default

No worries! I checked the forum every few days and got quite worried since you haven't posted anything, so I'm just glad you are back and hope you have overcome your health problems

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Hey, I totally forgot about your issue. Had real bad health-problems in the last few months so it got swept under.

I put it on my ToDo-List for the next release...
Gandhi360 is offline   Reply With Quote
Old 10-27-2022, 06:16 PM   #772
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Hi Mespotine,

I'm very interested by changing the global lock state with its options.
I saw that you provide :
integer lock_state = ultraschall.GetProject_Lock(string projectfilename_with_path, optional string ProjectStateChunk )

but apparently, it reads the RPP file or a ProjectStateChunk which is difficult to read (you say that we should not read it too often).

So I do not see how I can simply and quickly change the global lock settings...

Do you have an idea ?
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-27-2022, 11:25 PM   #773
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

You can't currently, AFAIK. Unless you change the lock-state of a project and reload it.

It's a limitation of the API.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-28-2022, 12:45 AM   #774
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Quote:
Originally Posted by Gandhi360 View Post
No worries! I checked the forum every few days and got quite worried since you haven't posted anything, so I'm just glad you are back and hope you have overcome your health problems

Since the latest Dev-release of Reaper includes ParameterModulation native, I think, I'm going to reimplement it completely to use the new Api-possibilities.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-28-2022, 01:56 AM   #775
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
You can't currently, AFAIK. Unless you change the lock-state of a project and reload it.

It's a limitation of the API.
Very weird, because it seems to be a feature easily available with the LOCK button. Do you think I can ask for a FR to be added to the API ?
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate

Last edited by binbinhfr; 10-28-2022 at 02:20 AM.
binbinhfr is offline   Reply With Quote
Old 10-28-2022, 02:05 AM   #776
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

You can try setting the config-variable projsellock:

https://mespotin.uber.space/Ultrasch...ml#projsellock

But I haven't tested it yet..

Config-Vars can be a good source for checking, if a state might be settable.
If you use Ultraschall-Api, you can use the Displayer for config vars.
Just run it and set the options you want to get/set on and off again. If the console shows you a result, it's a config variable you should check for.

Look for the keywords "Ultraschall" and "Display" to find the scripts for displaying changed config-values.
One is for config files, the other one for config variables.
Use the latter of the two.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...

Last edited by Meo-Ada Mespotine; 10-28-2022 at 02:14 AM.
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-28-2022, 03:22 AM   #777
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
You can try setting the config-variable projsellock:
Man, you're a genius ! It works !

I just wonder if this method is quick ? Does it works only change memory or does it write to disk everytime ?

The fact is that the ULTRASHALL DISPLAYER detects everychange made to the button/menu.

here is the LUA test script, for those interested :

Code:
function msg(s) 
  reaper.ShowConsoleMsg(tostring(s).."\n") 
end

function tobits(num)
  local s = ""

  while num ~= 0 do
      if num & 1 == 0 then s = s .. "0" else s = s .. "1" end
      num = num >> 1
  end

  return s
end

retval = reaper.SNM_GetIntConfigVar("projsellock", 65535 )

msg(tobits(retval))

-- set all locking options
retval = reaper.SNM_SetIntConfigVar("projsellock", 32768-1 )

-- unset all
-- retval = reaper.SNM_SetIntConfigVar("projsellock", 0 )

retval = reaper.SNM_GetIntConfigVar("projsellock", 65535 )

msg(tobits(retval))
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-28-2022, 04:36 AM   #778
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Since it's a project related setting, it will only be changed in memory until the project is saved.
So it's fast.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-28-2022, 05:03 AM   #779
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Since it's a project related setting, it will only be changed in memory until the project is saved.
So it's fast.
It works perfect ! Thanks.
Looking at the returns of ULTRASHALL DISPLAYER, there are a LOT of features that can be accessed this way, that's amazing !
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-28-2022, 05:06 AM   #780
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Yes. Almost all of them(maybe all?) I document in the docs I linked above. So reverse engineering isn't necessary.
You can usually look for the text displayed next to a checkbox to see, if I have documentated it already.

The displayer script is the most important tool to do these docs.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-28-2022, 06:03 AM   #781
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
if I have documentated it already.
I see that the displayer relies on the Reaper_Config_Variables.USDocML file.
But how do you build this file ?
And how/when do you update it ?

EDIT: do you have an idea how I can change also "on the fly" a specified color of the current theme (in my case, I want to adress the locked track alpha value) ?
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate

Last edited by binbinhfr; 10-28-2022 at 03:48 PM.
binbinhfr is offline   Reply With Quote
Old 10-29-2022, 08:33 AM   #782
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Will use you API that adds a lot of interesting functionnality.

Installation and test are OK but, for published scripts, what is the best way to verify that API is installed, BEFORE running :
Code:
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")
ultraschall.ApiTest()
and avoid a possible error on the dofile...
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-29-2022, 09:52 AM   #783
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Just follow the usage-instructions on this page:

https://github.com/Ultraschall/ultra...api-for-reaper
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-29-2022, 11:40 AM   #784
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Just follow the usage-instructions on this page:

https://github.com/Ultraschall/ultra...api-for-reaper
Thanks, so many documents that I missed this one ;-)

BTW, I see here that you developped an alternative to getchar called GFX_GetChar :
https://github.com/Ultraschall/ultra...eaper/releases

I'll give it a try !
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-30-2022, 05:55 AM   #785
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Updated Ultraschall-API and fixed some errors

please update your ReaPacks
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-31-2022, 01:20 AM   #786
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Just a question : is it supposed to work ok on a 32 bits windows 7 ?
It works on my big home PC x64, but gives errors on my old portable Win7 PC that I use for playing live...

here is what he says when I launch my script using API :
C:\Users\h\AppData\Roaming\REAPER/UserPlugins/ultraschall_api/ultraschall_ModulatorLoad3000.lua: size_t size mismatch in precompiled chunk
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-31-2022, 01:30 AM   #787
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Try uninstalling and reinstalling. It should work on all systems.
If not, gimme a sign and I upload a workaround.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-31-2022, 05:01 AM   #788
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Try uninstalling and reinstalling. It should work on all systems.
If not, gimme a sign and I upload a workaround.
same error. But this "size_t " error makes me think about an integer variable size that could change between 32 and 64 bit systems, no ?
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-31-2022, 05:16 AM   #789
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Maybe with the 64bit version of Lua vs the 32bit one. Will fix this later today.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-31-2022, 05:56 AM   #790
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Maybe with the 64bit version of Lua vs the 32bit one. Will fix this later today.
Thanks.
For info. I disabled the Ultraschall callings.
The rest of the script is working fine in 32 bits, with SWS and JS APIs.
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 10-31-2022, 06:29 AM   #791
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

It should be fixed now..
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 10-31-2022, 01:23 PM   #792
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
It should be fixed now..
Yes it works now. Thanks.
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 11-01-2022, 12:45 AM   #793
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Can't find a function to set the first visible track in the TCP... Any idea ?
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 11-01-2022, 04:21 AM   #794
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Quote:
Originally Posted by binbinhfr View Post
Can't find a function to set the first visible track in the TCP... Any idea ?
Set the track to what, exactly?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 11-01-2022, 06:00 AM   #795
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Set the track to what, exactly?
Sorry for my english :-)
I mean set one given track to be the first one on the top of the TCP/arranger view (when you scroll vertically)
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 11-01-2022, 06:50 AM   #796
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

To be sticky(which is not possible) or to move the track?
Or to scroll the arrangeview?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 11-01-2022, 08:25 AM   #797
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
To be sticky(which is not possible) or to move the track?
Or to scroll the arrangeview?
Just to scroll the arrangeview to position this track on the top place
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 11-01-2022, 09:19 AM   #798
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

These may help you to find out, if the track is already visible:
https://mespotin.uber.space/Ultrasch...IsTrackVisible
https://mespotin.uber.space/Ultrasch...Tracks_Arrange

JS-extension allows you to scroll the arrangeview.
To get the hwnd for the arrangeview, use:
https://mespotin.uber.space/Ultrasch...ND_ArrangeView

This rest about the scrolling you better ask for in the JS-extension-thread(pinned in this subforum), as it's a while, since I did this and forgot it.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote
Old 11-01-2022, 09:44 AM   #799
binbinhfr
Human being with feelings
 
binbinhfr's Avatar
 
Join Date: Oct 2021
Location: France
Posts: 363
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
This rest about the scrolling you better ask for in the JS-extension-thread(pinned in this subforum), as it's a while, since I did this and forgot it.
Thanks Man. That's a lot of question, uh ? ;-) I'm writing a script for my live needs (I play in duet with a pianist and we need a "flexible" drum track, so I develop my own tool that should perfectly suits our need ; I'll share it later).
__________________
Reaper's lunatic
Reapack repository / GitHub / SoundCloud / Donate
binbinhfr is offline   Reply With Quote
Old 11-01-2022, 04:30 PM   #800
benmiller
Human being with feelings
 
benmiller's Avatar
 
Join Date: Dec 2015
Posts: 324
Default

tryi,g to install through reapack but i get this error:

https://raw.githubusercontent.com/Ul...inführung.jpg:
HTTP response code said error (22): The requested URL returned error: 400

and then nothing get installed. anyidea what i can do?
ben
benmiller 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 04:23 AM.


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