Closed coeur-de-loup closed 1 year ago
I think it would be best to optimize caching on Browser functions instead of always asking the api? Not sure how to do this properly...
Hey @coeur-de-loup, thank you for the PR, and please excuse my late reply! I'll check it out soon!
I'll make some adjustments to the code after merging, but this looks great!
First ever contribution! Thanks for approving, I'll continue building on it!
PR Summary
Addition of New Browser Handling Classes Introduced
Browser
andBrowserItem
classes to themidi-script
module in the 'AbletonJS.py' file. These deal with interactions involving the browser in Ableton Live, a digital audio workstation.New Method to Access Browser Incorporated a
get_browser
method to theApplication
class in the 'midi-script/Application.py' file. Its purpose is to provide a serialized version of the browser.Browser Module Creation A new
Browser
module has been built in thesrc/ns
directory. It contains classes specific to the browser and browser items.Data Transformation Property A
transformers
property has been appended to theApplication
class in the 'src/ns/application.ts' file. It determines how raw browser data gets transformed into theBrowser
class.New Ableton Browser Representation The 'src/ns/browser.ts' file now includes a
Browser
class. It manipulates the Ableton browser and contains methods for loading and previewing items.New Ableton Browser Item Representation Introduced a
BrowserItem
class inside the 'src/ns/browserItem.ts' file. It symbolizes an individual item existing in the Ableton browser.Device Insert Mode Modification Implemented a
set_insert_mode
method to theSong
class in the 'src/ns/song.ts' file. This function adjusts the insert mode for devices within the Ableton song.