Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 19.35

This part of topic is old and might contain outdated or incorrect information

locoDogPRO InfinityModeratorMember since 2013
Needs a number or will return for only the default/selected sample
 

Posted Fri 29 Oct 21 @ 10:45 am
mg_1978PRO InfinityMember since 2008
locodog wrote :
Needs a number or will return for only the default/selected sample

yes infact if i have sample title ‘pippo’ and i have script: sampler_position ‘pippo’
it works…but when i scroll samples in browser_window ‘songs’ how can i put sample title inside ‘’?
sampler_position ‘’
i will have different title inside ‘’
 

Posted Fri 29 Oct 21 @ 11:18 am
NicotuxHome userMember since 2014
this was get_browsed_song 'Pos' but look like it was removed
 

Posted Fri 29 Oct 21 @ 12:34 pm
AdionPRO InfinityCTOMember since 2006
get_browsed_song 0 'columnname'
should still work. I don't think 'pos' was ever a thing.
 

Posted Fri 29 Oct 21 @ 12:43 pm
NicotuxHome userMember since 2014
yes Pos was a thing in browser and sampler getting the position playing in track or sample
"Pos" b S - -
not to confound with position which is the index in the display list (sorted)
"Position" b _ K P
not to confound with order which is the index in the display list (as it should be played - but is currently not)

I have (was having) a grid with columns -(121 entries from album to Year including alias) and place they are (were) available - (most are unusable now) browser, sampler, karaoke, search, askthedj, automix&sidelist, history
 

Posted Fri 29 Oct 21 @ 1:29 pm
AdionPRO InfinityCTOMember since 2006
Ah sorry, you mean the sampler column. That one indeed still exists, but is indeed not available from script (and I don't think ever has)

But to see the position of the sample playing in the browser, the easiest would be to just use the Pos column?
 

Posted Fri 29 Oct 21 @ 1:42 pm
mg_1978PRO InfinityMember since 2008
Adion wrote :
get_browsed_song 0 'columnname'
should still work. I don't think 'pos' was ever a thing.

complete script is: sampler_position “get_browsed_song 0 'columnname'”
right?
 

Posted Fri 29 Oct 21 @ 1:45 pm
mg_1978PRO InfinityMember since 2008
Adion wrote :
Ah sorry, you mean the sampler column. That one indeed still exists, but is indeed not available from script (and I don't think ever has)

But to see the position of the sample playing in the browser, the easiest would be to just use the Pos column?

no i don’t wont sampler column…i would time elapsed/remain about sample played in browser_window ‘songs’ (example: time remain if i play a sample in Recording folder)….i can’t use song_pos ‘remain’ because isn’t a song in a deck, is a sample played in browser_window ‘songs’

 

Posted Fri 29 Oct 21 @ 1:50 pm
NicotuxHome userMember since 2014
tested but sampler_position does not take name as implicit parameter and does not allow scripted name

as adion said it is not available from script
 

Posted Fri 29 Oct 21 @ 1:50 pm
mg_1978PRO InfinityMember since 2008
how can i see a time elapsed or time remaining about sample pkayed in browser_window ‘songs’? is there a script?

 

Posted Fri 29 Oct 21 @ 2:05 pm
locoDogPRO InfinityModeratorMember since 2013
something a little strange with the sampler
with regard to the default sample, probably needs a video because it's ...off...



also sampler_ verbs don't seem to be able to cast to in any way, name or number, [didn't try path]
 

Posted Fri 29 Oct 21 @ 2:33 pm
AdionPRO InfinityCTOMember since 2006
sampler_pad changes the focussed sample (the one that sampler_position etc will use when no index specified.
Starting a sample from the browser doesn't change the focussed sample though. (although perhaps it should)
 

Posted Fri 29 Oct 21 @ 2:59 pm
locoDogPRO InfinityModeratorMember since 2013
but pad 1 wasn't in some cases, and from boot the browser does until some thing happens.
about a minute of button bashing and you'll see what I mean
 

Posted Fri 29 Oct 21 @ 3:18 pm
mg_1978PRO InfinityMember since 2008
at now is theren’t a simple script that shiw time elapsed or remaining about a sample in play? is very strange :(
 

Posted Fri 29 Oct 21 @ 3:28 pm
NicotuxHome userMember since 2014
no the script is dead currently (as many columns are not available anymore from script or to search)
and many virtual decks change behavior (deck 'sampler' is not a valid thing anymore) so using deck sampler get_loaded_song is not a workaround anymore

initially all columns were available for everything in every contexts, then progressively things were removed : columns, display, availability for some actions, in some context, selection only by script ... some were added too, but finally there still stay too few including many too incoherent ones under certain conditions, or just not reacheable

this are just limitations

i.e. order available in browsed songs as well as "will play at" and "message"
Pos available for samples but not readable, and not display in grid view
"will play at" available for history

and what is funny, everything still exist internally,
i.e. you can sort by bitrate but not select it in search but search by bitrate still possible via script
no "play time" in history which still display if it was selected before function was removed
 

Posted Fri 29 Oct 21 @ 3:32 pm
AdionPRO InfinityCTOMember since 2006
Quote :
initially all columns were available for everything in every contexts, then progressively things were removed

Let me know when you find the build in which this was possible, as I'm pretty sure it never was.
 

Posted Fri 29 Oct 21 @ 3:35 pm
mg_1978PRO InfinityMember since 2008
locodog wrote :
something a little strange with the sampler
with regard to the default sample, probably needs a video because it's ...off...
...
also sampler_ verbs don't seem to be able to cast to in any way, name or number, [didn't try path]

yeah is correct!! but sampler_position why doesn’t work if a play a sample in browser_window ‘songs’ (samples are inside a Sampler bank that are in folder list)????

 

Posted Fri 29 Oct 21 @ 3:52 pm
NicotuxHome userMember since 2014
@Adion early versions up to 8.2 were far less limited (don't remember exactly, but I annotated later as "since one of the V8.2")

The list (which is totally obsoleted now) was finalized with build b42?? (was about to try to script columns in browser) and sporadically updated, specially with additions such as order(6525), singer writable, Title (remix) and other alias found (this are tries and error results, no official list may miss a lot)

but yes, you are totally right, some fields always been specific such as "From" "Mode" "Pos" so that not "all columns" but "all common columns" or "all non context specific columns"
it was an abusive term

This is the reason why the list was started
long way to create:
in every contexts choose selectable columns one by one and tag it as usable
in every contexts try every discovered columns one by one and mark those that also responding
then for every column try to remove spaces and shorten if possible and swap "Has" and "is" to detect shor aliases in the style of tooltips in translation file, not forgetting entries found in examples and skins

tested with get_browsed_song and browser_sort
7 * 121 * 2 = 1694 cells
with almost as many fails attempts

yes it took so me time
 

Posted Fri 29 Oct 21 @ 5:10 pm
mg_1978PRO InfinityMember since 2008
i have mapped: sampler_position 1 and param_invert & param_cast ‘percentage’
but can i convert this % in time remain about sample 1??
 

Posted Sun 31 Oct 21 @ 12:41 pm
NicotuxHome userMember since 2014
not really,
what about loop samples ? pitched samples ?

but with some hack retrieving needed info from various places :
browser_window sampler & browser_scroll top & browser_scroll 2 & browser_scroll -1 & param_multiply 'get_browsed_song length ms' 'sampler_position 2 & param_invert & param_mod 1' & param_cast

will return remain of playing sample in slot #2 or 0 if not playing
(took #2 in a way to see the 2 places where slot is needed

for slot #1 only a shorter script can apply - top being slot #1
browser_window sampler & browser_scroll top & param_multiply 'get_browsed_song length ms' 'sampler_position 1 & param_invert & param_mod 1' & param_cast & debug & get_browsed_song bpm & param_cast & debug & get_bpm & param_cast & debug


would need to take care about bpm too with pitched samples, but don't know how to get this info
 

Posted Sun 31 Oct 21 @ 6:21 pm
41%