Posts: 22
Threads: 5
Joined: Aug 2022
Hi I'm looking for a way to edit and compose manually/programmatically the song objects.
I'd like to write some script to combine automatically into a single song different related element.
For now the Batch Import is not able to detect that elements are related and should be grouped together (as suggested in this
post).
So I'd like to do this myself with a script.
Is there any documentation to start from ?
Thanks,
Posts: 14,378
Threads: 302
Joined: Apr 2012
Unfortunately, no, there really isn't any documentation for the way the database is set up, although most fields are self-explanatory. I've mentioned some of the details on the forums before, but if you want to manually create songs in the database, you are going to have to update quite a few tables at once. Get familiar with the database structure and I can answer specific questions once you've looked through all the tables.
Mike
Posts: 22
Threads: 5
Joined: Aug 2022
Thanks. I'll be starting slowly :-)
Posts: 20
Threads: 9
Joined: Aug 2022
The database is SQLite 3. If you know SQL and have tools to work with a SQL database, it should be doable.
Posts: 22
Threads: 5
Joined: Aug 2022
(09-03-2022, 08:49 AM)mwiseman Wrote: The database is SQLite 3. If you know SQL and have tools to work with a SQL database, it should be doable.
That's nice. SQL hasn't to much secret for me.
Posts: 1,255
Threads: 194
Joined: May 2015
Maybe you can take a look at
https://github.com/sciurius/MSPro-Tools, where some of this is already implemented.
Johan
johanvromans.nl — hetgeluidvanseptember.nl — mojore.nl -- howsagoin.nl
Samsung Galaxy Note S7FE (T733) 12.4", Android 13.0, AirTurn Duo & Digit (Gigs).
Samsung Galaxy Note S4 (T830) 10.5", Android 10.0 (maintenance and backup).
Samsung A3 (A320FL), Android 8.0.0 (emergency).
Posts: 22
Threads: 5
Joined: Aug 2022
(09-05-2022, 04:20 PM)sciurius Wrote: Maybe you can take a look at https://github.com/sciurius/MSPro-Tools, where some of this is already implemented.
Great tools and starting point. I haven't been using Perl for ages, but it shouldn't be too difficult to understand the code.
The question I had is how to access the database. Do you mount a drive from you PC to the tablet ? Or do you copy the database to the PC, updates it and push it back to the tablet ?
Posts: 14,378
Threads: 302
Joined: Apr 2012
I would copy the database to the PC, alter it, then copy it back and overwrite the existing file on the tablet.
Mike
Posts: 1,001
Threads: 87
Joined: Feb 2017
and don't forget to keep a copies of the database so you have something to revert to!
Geoff
Samsung Galaxy Tab A6