登录:     


Forum: General Discussion

Topic: Script School - Page: 16.8

由于该帖子的部分内容已年深日久,可能包含陈旧过时或描述错误的信息。

Also note (b6646): "RIGHT ALT" also known as "ALT GR" opens the CTRL+ALT map or close ALT map
double pressure make it sticky as well
press "RIGHT ALT" again to "unstick" the MAP

when holding "RIGHT ALT" pressing CTRL will toggle ALT map at release (not when sticky)

Even the tiny doc says "While holding CTRL or ALT, show keyboard mapping overlay in browser area" the CTRL key does not seem to make it appear - CTRL+ and CTRL+SHIFT maps do not display

COMPLEX to use with combination keys for now (may need some fixes) :
pressing CTRL then ALT will not open the map, but pressing ALT then CTRL will
pressing SHIFT then ALT will not open the map, but pressing ALT then SHIFT will
pressing SHIFT then RIGHT ALT will open the map as well as RIGHT ALT then SHIFT
this is the same map as ALT+CTRL+SHIFT
pressing CTRL then RIGHT ALT will open the map releasing will temporary show ALT map but go back to CTRL+ALT map; next pressure to CTRL make ALT map display

This is a restricted keyboard (no keypad)
 

If you want the map on ctrl or shift as well you can simply assign keyboard_shortcuts to those as well.
For the default map we decided not to since ctrl is also used for some basic shortcuts like ctrl+a, ctrl+c ctrl+v or hold and click to select multiple files. It might be annoying to have the keyboard map pop uo while trying to use the browser.
Therefore the shortcuts we did assign to ctrl are also the ones related to the browser
 

This is all cool stuff ! Thanks for posting more details.

Is there a way to add a second KB, one that VDJ sees and can be set to the default Mapping, and another that VDJ does not see that is used for typing in other applications on a different screen?

When I attempt to add a second USB, KB I don't see it added to Mapping section so one can define its use.
(Both KBs work perfectly, can type on either.)

would a PS2 and USB keyboard combo look different to VDJ so it would see both?

Currently I make to many mistakes, (when attempting to type in other applications), if I have the Default KB mapping enabled .. It would be great if one could have a second KB added for that.
 

No, afaik windows does not tell an application which keyboard a key press is coming from.
It might be possible by handling the keyboards with custom code and reading the data from the keyboard directly, but I think the number of people interested in connecting a second keyboard will be too small to justify the complexity
 

Thank you Adion for the speedy reply..

I ask, since most times.. VDJ can do much more then I am aware of.. or imagine,
and I can easily live without a second KB.

Again thanks

---------
And if possible... a second KB could be a inexpensive alternative for a novation lauchpad like, extra set of programmable buttons.
 

locodog wrote :

browser_open_folder is pretty straight forward no point in going over it, personally I'm more a fan of using, browser_enter, browser_folder to navigate browser windows folders & songs, but this is a slightly different way to do the same is thing.

I think you underestimated this action.
First of all it can accept on/off
And when used with "off" as an example it always closes the current sub and then moves backwards one level.
In other words, with just a few presses you can now return to the root of your database with all folders collapsed.
Same goes when used with "on"
You use it to open subfolders and you don't have to worry that if no subfolders are present the focus will switch to songs instead.

Personally in my own keyboard mapper I have mapped BACKSPACE to do "browser_open_folder off" and RETURN (Enter key) to do "browser_open_folder on"

 

@Phantom thanks for the clarity.
I'm mostly picking tunes out of a search or a filter or a vFolder so those actions aren't something I use.
 

Fair, but I though this thread was not meant for what we use, rather what can be done with scripts! :P
 

Thank you PhantomDeeJay for your post .. always cool to understand more what is possible with each update.

I have wished that there was Sticky post, where staff or others, gave more details for each of the amazing updates and additions to VDJ.

Love VDJ !
 

Hello everyone. So, I have a few questions.
1) Play Next or automix_add_next - which of these 2 functions will be more suitable for me? You need to add a script to the task schedule:
add one (specific or random) file from the folder as follows! Let's call them * workfile (s), while it is located in one specific folder (or it can be a virtual folder). Next.... We expand the possibilities.... There are 72 files in that folder, 3 pcs. for each hour, i.e. you need to run a file every time that has not yet been played today.

2) Task schedule - This task must be repeated every 20 minutes during the day.

Let's start with this, if there is a correct solution, then I will continue to throw up interesting ideas.
 

Hi at all, how i map a button to change focus from browser_window “folders” to brower_window “songs” only if folders focus is in “sample Recording” file or inside the “sample” folder? i have mapped: get_browsed_folder ‘sample’ ? browser_window ‘songs’ : nothing
but doesn’t work :(
 

param_equal `get_browsed_folder` "YOUR_STRING" ? TRUE : FALSE

could also use

param_contains
with
get_browsed_filepath

if you need the query to not be as specific
 

if its only for samples they are virtual elements

param_equal `get_browsed_song extension` vdjsample ? browser_window songs
 

get_browsed_filepath & param_contains ‘Recordings’
is perfect! thanks for the script; i have another question:
with a button i would record max 9 files in folder ‘Recordings’, i have write this script:
browser_gotofolder ‘Sampler\Recordings’ & browser_window ‘songs’ & file_cont 10 ? nothing : sampler_rec ‘master’
but with this script i push 2 time button for recording…1 time for set folder focus in folder ‘Recordings’ and 2 time for recording from master….could i do this with script that record or not pushing only 1 time button? thanks a lot!
 

mr.ZvooK wrote :
Hello everyone. So, I have a few questions.
1) Play Next or automix_add_next - which of these 2 functions will be more suitable for me? You need to add a script to the task schedule:
add one (specific or random) file from the folder as follows! Let's call them * workfile (s), while it is located in one specific folder (or it can be a virtual folder). Next.... We expand the possibilities.... There are 72 files in that folder, 3 pcs. for each hour, i.e. you need to run a file every time that has not yet been played today.

2) Task schedule - This task must be repeated every 20 minutes during the day.

Let's start with this, if there is a correct solution, then I will continue to throw up interesting ideas.


There is no answer or recommendation to my question?
 

@mg_1978

try

browser_gotofolder 'sampler://Recordings' & browser_enter & param_equal `file_count` 10 !? sampler_rec master

or add some delay for browser to end action if too slow

browser_gotofolder 'sampler://Recordings' & repeat_start dx 170ms 1 & browser_enter & param_equal `file_count` 10 !? sampler_rec master

take care about the count if some more 10 other records exist, script will do
may prevent by using

browser_gotofolder 'sampler://Recordings' & browser_enter & param_bigger `file_count` 9 ? sampler_rec master
 

@Nicotux
thanks a lot, your scripts works!

today my question is: if i use scripts like ‘mic_rec’ or ‘linein_rec’, in the deck there is the recorded…can i directly save a .vdj or .mp3 file (with script button that i don’t know) that is in my deck? or i can only put deck recorded in loop and use sampler_rec 1 (for example) to create a sample file .vdj? thanks
 

@mr.ZvooK, setting up adverts?

make a filter that grabs for your 72 files, also include & Last Play > 0.5
[use 0.5 as 1 would allow for no variety day after day]
Random is tricky, maybe when your 20 minute timer strikes, jump to your filter,
something like this to get a random number,
set test `param_mod "file_count" "get_time elapsed"`

then use test as the count for a rsi performing browser_scroll
 

JUMP TO FILTER & set test `get_clock 1000 & param_multiply 0.001 & param_cast 'frac' & param_multiply 1000` & set test `param_mod "file_count" "get_var test"` & var_smaller 'test' 0 ? param_multiply "get_var test" -1 & RSI WITH BROWSER SCROLL : RSI WITH BROWSER SCROLL

I forgot about get_clock 1000, probably the best way to get a random number.
 

have you any ideas??? thanks a lot

today my question is: if i use scripts like ‘mic_rec’ or ‘linein_rec’, in the deck there is the recorded…can i directly save a .vdj or .mp3 file (with script button that i don’t know) that is in my deck? or i can only put deck recorded in loop and use sampler_rec 1 (for example) to create a sample file .vdj? thanks[/quote]

 

34%