Quick Sign In:  

Forum: General Discussion

Topic: Script School - Page: 44.2
Thank-you! :)
 

Posted Mon 12 Feb 24 @ 4:35 pm
Okay... yet ANOTHER question!

I can't get the Sampler Cue (sampler_pfl) button to work on my DDJ-RZ.

I've tried mapping a few things to the button:

1.
sampler_pfl


2.
sampler_pfl & settings samplerHeadphones yes


3.
toggle sampler_pfl


4.
toggle sampler_pfl & ( sampler_pfl ? settings samplerHeadphones yes : sampler_pfl off )


I don't really know what I'm doing yet, though! ;)

Also, I can't get the filter knob below the sampler (on my DDJ-RZ) to do anything.
 

Posted Mon 12 Feb 24 @ 6:45 pm
sampler_pfl should receive a % value
For a button use setting samplerheadphones

For the Color FX knob use param_smaller 0.49 ? effect_active sampler filter on & effect_slider sampler 1 : param_bigger 0.51 ? effect_active sampler filter on & effect_slider sampler 1 : effect_active sampler off & effect_slider sampler 1


When DDJ-RZ was released and initailly supported, sampler did not support effects, or PFL (since it was reproducing sound out of the trigger deck at that time)
 

Posted Mon 12 Feb 24 @ 8:36 pm
Alright that's got it working... sort of? The sampler PFL level is WAY hotter than the pfl for any of the decks... how do I reduce it? Also, the color fx knob will only do the "filter" effect. Selecting "Jet" or "Space" or "Pitch" has no effect on what the knob does.
 

Posted Mon 12 Feb 24 @ 9:27 pm
Sampler does not support color effects currently.
You could script something for the knob to mimick color effect for all "possible" combinations but the script would become much more complicated. However it IS possible.

As for Sampler PFL, I believe it has to do with the fact that zerodb (headroom) has to be around -6 to -9db for DDJ-RZ. Therefore the decks are much quiter than the sampler.
 

Posted Tue 13 Feb 24 @ 8:11 am
PhantomDeejay wrote :
Sampler does not support color effects currently.
You could script something for the knob to mimick color effect for all "possible" combinations but the script would become much more complicated. However it IS possible.

As for Sampler PFL, I believe it has to do with the fact that zerodb (headroom) has to be around -6 to -9db for DDJ-RZ. Therefore the decks are much quiter than the sampler.


Okay, got it. I'm not too concerned about the color knob for the sampler.

Is there any way to script in something to lower the PFL level on the sampler? The sampler level is the same as all the decks, on the Master output; and it's the same as all the decks if I just go into the preferences menu and check off the box that sends it to the headphones. It's only when I use the CUE button with the script you suggested that it makes the sampler PFL gain significantly louder.

 

Posted Tue 13 Feb 24 @ 1:12 pm
Do you use external or internal audio mixer setup ?
DDJ-RZ provides both.
Software (internal) mixer is prefered, and the script I gave you should work fine for that mode.
For hardware (external) mixer mode, it indeed may sound too loud as I think it will send the sound on any deck that's not on air (but I don't remember if that's how it actually works, I'll have to test)

So please let me know your sound setup so that I can check.
 

Posted Tue 13 Feb 24 @ 1:24 pm
I have it set to internal mode.
 

Posted Tue 13 Feb 24 @ 4:37 pm
mg_1978PRO InfinityMember since 2008
PhantomDeejay wrote :
Sampler does not support color effects currently.
You could script something for the knob to mimick color effect for all "possible" combinations but the script would become much more complicated. However it IS possible.

As for Sampler PFL, I believe it has to do with the fact that zerodb (headroom) has to be around -6 to -9db for DDJ-RZ. Therefore the decks are much quiter than the sampler.


hi, there is colorfx for sampler 👍 it’s mapped in Pioneer DDJ-RZX mapper…but is there colorfx for mic input??

 

Posted Fri 16 Feb 24 @ 8:20 am
Oh hi, it's me again lol. I'm trying to make the encoder knob (push) and 'back' button on my DDJ-RZ do what I want them to do, but it makes my head spin trying to figure it out!

Here's how those buttons are currently mapped:

BROWSE_ENC_PUSH
browser_window 'folders' ? browser folder

BACK
show_splitpanel sideview ? browser_window +1 : browser_window 'folders,songs'

Here's what I want to be able to do:

1. When in the folders view, BROWSE_ENC_PUSH will expand / close any folder containing subfolders (like it does now).

2. When in folders view, when a lowest level folder/playlist is highlighted, BROWSE_ENC_PUSH will switch to the songs view

3. When in the songs view, BROWSE_ENC_PUSH will switch to the splitpanel if the splitpanel is open. If it's not open, BROWSE_ENC_PUSH can either do nothing, or it can go back to the folders view, I don't mind either way.

4. When in folders view, the BACK button will switch the active screen to splitpanel view, if the splitpanel is open. If the splitpanel is NOT open, then back could either do nothing, or open/close master folders.

5. When in songs view, the BACK button will go back to folders view.

6. When in splitpanel view, the BACK button will go back to songs view.

TL;DR -- I want the BROWSE_ENC_PUSH to move things forward and the BACK button to move things backward... if that makes sense!?

Currently, the BROWSE_ENC_PUSH just opens and closes folders/subfolders, while the BACK button navigates between the various views of folders, songs, and splitpanel.
 

Posted Fri 16 Feb 24 @ 7:58 pm
locoDogPRO InfinityModeratorMember since 2013
@djchrispoynter

this is your test for the bottom,

browser_open_folder ? browser_open_folder off : browser_open_folder on & wait 100ms & browser_open_folder ? : browser_window songs


you should be able to do the rest of your list with what's been explained to you earlier.
 

Posted Fri 16 Feb 24 @ 9:04 pm
locodog wrote :
@djchrispoynter

this is your test for the bottom,

browser_open_folder ? browser_open_folder off : browser_open_folder on & wait 100ms & browser_open_folder ? : browser_window songs


you should be able to do the rest of your list with what's been explained to you earlier.


Ohhhh man I've been trying this for an hour and I can't get it. Every time I try something, another thing happens that I don't want to happen LOL!

I can't figure out what to put in, so that when the sideview is open and the focus is on the songs, that pushing the encoder will change the focus to the sideview; and when the focus is on the sideview, pushing the encoder will do nothing. The best I've been able to do is make the encoder change the view from songs to sideview, but then when the focus is on sideview, pushing the encoder starts making the folders open and close, while keeping the focus on the sideview. Gaah!!!!

I've figured out a fair number of mapping changes on my own without having to ask here, but they're all super simple. I've only been playing with this for a couple weeks now and it feels like it would take years to understand the script.
 

Posted Fri 16 Feb 24 @ 11:03 pm
[deleted]
 

Posted Fri 16 Feb 24 @ 11:03 pm
locoDogPRO InfinityModeratorMember since 2013
@djchrispoynter

browser_window folders ? browser_open_folder ? browser_open_folder off : browser_open_folder on & wait 300ms & browser_open_folder ? : browser_window songs : browser_window songs ? show_splitpanel sideview ? browser_window sideview : nothing :
 

Posted Sat 17 Feb 24 @ 9:16 am
Thanks, I appreciate it.

I have more things I'm struggling to figure out, too. Are you happy to entertain more mapping questions? It seems like it's child's play for you but I also don't want to be annoying! ;)
 

Posted Sat 17 Feb 24 @ 7:21 pm
locoDogPRO InfinityModeratorMember since 2013
You can keep asking, I'm not a fan of repeating myself [to one person] so you might get pointed towards earlier posts.

I'm not above bribes if time is precious but part of my entertainment of this thread is answering original/difficult questions.

Test for the bottom folder was one such question.
Navigating to sideview on condition of sideview visible and browser_window focus, was already answered by phantomDJ just a few replies up. I figured you should have got that.
 

Posted Sat 17 Feb 24 @ 8:20 pm
Thanks for clarifying your level of participation! :)

I'm not actually sure what you meant when you said, "Test for the bottom."

When you told me that partial script was browser_open_folder ? browser_open_folder off : browser_open_folder on & wait 100ms & browser_open_folder ? : browser_window songs I tried a few different things with it but it always ended in frustration because something else would happen that wasn't meant to. Like the example I mentioned above, where I was able to use the encoder push to advance the active browser window forward, but then the focus would get stuck on sideview, while at the same time making the folders open and close over on the left.

I've started reading the beginning of this entire Script School thread, and plan to slowly work through the whole thing. I've also read that short Atomix Script Tutorial. I like to think I'm a decently smart guy, but as soon as I get past a simple 2-3 part command, it begins to feel like a tricky logic puzzle. I have no programing background or anything, and I think it's going to be a very slow process to fully understand how to write more-than-basic scripts.

Thanks for bearing with me!

The one thing I've been stuck on today, is making my controller sync buttons behave the way I want them to, that being, the way they behaved in Rekordbox.

Here's how I have things right now:

SYNC: beatlock & auto_pitch_lock & ( auto_pitch_lock ? setting autoBPMMatch always : auto_match_bpm off ) (I got help from you or someone else on this)

LED_SYNC: Empty

JOG_OUT_RING: var 'CBGShift' 1 ? adjust_cbg : var 'CBGWidth' ? set_bpm : nothing (this was the default mapping)

Right now, when I press one SYNC button on my controller, it lights up (it used to be that if I pushed one, they would BOTH light up, but I somehow changed something and that is no longer happening). The beatgrids sync together, and if I scratch in a track and my timing is off, they'll still sync together. If I move the pitch slider (either one), both tracks will change tempo together. If I turn off the sync button that I had pressed, it seems to disable all of the above. So far, so good.

But then the other sync button will negate what the first one is doing. So if I have the right deck sync button on, and I hit the left deck sync button, it will change the sync settings on the right deck, even though the right deck sync button remains lit up. It's like when you have two light switches on opposite sides of the room, for the same bank of lights.

I hope this isn't as confusing as it sounds. Basically the sync buttons are linked together and I want them to be 100% independent from each other, as they are in Rekordbox.

Here's what else I want to be able to do, that I can't:

1. When I have sync enabled, I want the tempo slider to ONLY be available on the Master deck. In Rekordbox, for example, if I have the left deck playing a song, and the right-deck sync button is on, moving the right deck tempo slider has no effect on anything, but moving the left-deck tempo slider will change the BPM of both decks together. This is INDEPENDENT from the Master deck's sync button. As long as the slave deck's sync button is on, the master deck's tempo slider will control the tempo of both decks.

2. I want to be able to use the outside ring of the jogwheel to make adjustments to the track, even if I have the SYNC button turned on. In other words, if I start using the outside ring of the jogwheel, I want the beatlock on that deck to turn off. Right now if I nudge the jogwheel, both tracks stay locked. I do want the auto_pitch_lock to remain enabled (on the master deck) in this scenario though. This is for when I have two tracks synced, need to nudge one a little (so they're audibly synced, but not synced according to the beat grids), and then make a tempo change to both tracks together (with the master deck tempo slider).

3. I want the SYNC buttons to be independent from each other. So say, for example, I have the left sync buttons on... the left deck is playing a song, and I bring in the song on the right deck with the right deck's sync button turned off, and I'm beat-matching by ear. Then eventually I put a new song onto the left deck (remember the left sync button is still on) and when I hit play, it syncs to the right deck with all my chosen sync parameters from above.

4. If possible (though not a big deal) I want each sync button's LED to behave as follows:

- On (steady) when I turn it on
- Off when I turn it off
- Flashing when the track's grids are not beatlocked
 

Posted Sat 17 Feb 24 @ 9:52 pm
locoDogPRO InfinityModeratorMember since 2013
pioneer's sync mode sounds like a mess. sorry but I have no interest in remaking it.

3 if you have one deck playing why would you need sync mode to be on anywhere? If you tell your doctor "it hurts when I poke myself in the eye" the reply will be "why do that? & Don't do that then"

2 if you have beatlock on the grids are locked, you could adjust_cbg with the wheel [conditional of sync mode being on] which would in turn move the tracks, but you'd be chasing minor grid adjustments with every new track, probably better to set the grids straight as you're cueing by ear, I posted something about 1-2 pages back to straighten out off grids on audibly sync'd tracks.

1 just seems like you need to work out the conditionals.

Pick apart the logic of this, set_deck is the only unusual thing in it and all it does is make the other deck the focus of 2nd beatlock query.
param_mod is the mathematical modulo action.

beatlock & beatlock ? auto_pitch_lock on & setting autoBPMMatch always : set_deck `get_deck & param_mod 2 & param_add 1` & beatlock ? nothing : auto_pitch_lock off & auto_match_bpm off


beatlock being on is as good as any thing to signify/query for your per deck sync mode.
 

Posted Sun 18 Feb 24 @ 12:45 am
Pioneer's sync mode in Rekordbox is actually brilliant and allows me as much, or as little, automation as I desire. I've used Traktor, Serato, and Rekordbox, and 'sync' from the latter is definitely my favourite. I just explained it in a convoluted manner.

I'm giving up on this for now. My script understanding isn't there yet!

I have another question though:

I've mapped SHIFT_BROWSE_ENC_PUSH on my controller so that it puts the focus to the search bar in VDJ: setting "onScreenKeyboard On" & wait 50ms & search & doubleclick ? clear_search & setting "onScreenKeyboard Auto"

There are three onScreenKeyboard settings in VDJ -- 'Auto', 'On', and 'Off'. If I map a button to put the focus on the search bar, the onscreen keyboard only pops up if I have that setting as 'On'. For whatever reason, 'Auto' doesn't seem to work. And as a side-note, in general usage, when I tap the search bar with my finger, the onscreen keyboard actually only pops up sometimes when set to 'Auto' mode which I'm assuming is a bug.

At any rate, my script doesn't work to change the onScreenKeyboard setting to 'On'. I've even tried just mapping setting "onScreenKeyboard On" by itself and it won't change the setting. What am I doing wrong?

A couple other things I want to change / add to my script but I can't figure it out:

1. I don't want to use doubleclick SHIFT_BROWSE_ENC_PUSH to clear the search box. I want to be able to just click it once to enter the search box, and click it once again to clear & exit the search box, putting the browser view onto 'songs'.

2. I want to have the onScreenKeyboard setting change to 'On' when I hit SHIFT_BROWSE_ENC_PUSH to search for a song (so that the onscreen keyboard is guaranteed to pop up) and then when I hit SHIFT_BROWSE_ENC_PUSH to clear the search box / switch the focus to 'songs' I want the onScreeKeyboard setting to switch back to 'Auto'.

It would simplify things if 'Auto' just worked correctly!

The reason for the onScreenKeyboard setting is that I use a Surface Pro with no keyboard attached with my DDJ-RZ. I'd be happy to leave the setting as 'On' but then when I'm prepping music with my physical keyboard attached, the onscreen keyboard constantly pops up.
 

Posted Mon 19 Feb 24 @ 3:13 pm
locoDogPRO InfinityModeratorMember since 2013
just added in klaus' video on linked tracks to my feature post.
 

Posted Fri 01 Mar 24 @ 2:13 am
95%