rasteri / SC1000

An open-source digital portable turntablist instrument
GNU General Public License v2.0
243 stars 29 forks source link

any way to receive raw sensor data on computer from SC500? #19

Open ffd8 opened 3 years ago

ffd8 commented 3 years ago

I was holding my breath for a MIDI output (while co-researching using DVS tracks, which would only give jogwheel.. not fader values) – but wonder if it would be much easier to somehow get the raw sensor info from the SC500 to ones laptop via serial over USB or similar? Ever since getting the SC500, I've wanted to also use it as a controller for visuals-scratching.. ie would be amazing to get raw values for:

@rasteri – the c code goes woosh over my head, but if you could get these values sent to the computer, I'd be happy to help write code (js for browser usage, java for processing, etc) – to handle those values for all kinds of weird usage.

Wasn't sure if the Olimex board is anything like an arduino, that can be constantly sending a stream of serial data over that usb port? Or is a USB to SERIAL (UART) female adaptor or male adaptor necessary as mentioned in datasheet (if it even fits within the case with other stuff). Maybe the settings file activates it, so by default it's not wasting any energy sending values. Not sure if it would be best powered directly from a laptop, or to use a wifi/bluetooth dongle to avoid weird powerbank->computer accidental issues...

rasteri commented 3 years ago

This is a feature I very much want to add, keep an eye for future updates.

DubbyLabby commented 3 years ago

Nice but it should be on the expansion port since the usb data lines aren't connected. Also the magnetic sensor and cues go directly into Olimex instead the xfader which goes first to the pic18f...

So it should be from olimex getting all the data and send it to TX (I can't remember if there's an extra output at olimex...) and implementing the missing d+/d- lines into the olimex board or expansion connector (doubling it as midi could be handy for midi turntables users cues-as-notes too but maybe too low bandwith for scratching?)

I missed something? I'm not so prone to code neither... but I love so much the project so I dig and dig on it...

errolkokbas commented 3 years ago

One thought I've had is to load a timecode audio file as a sample, and then connecting the sc1000 to an audio interface. This would allow you to use the jogwheel, but the cue points wouldn't control your dj software.

I've been thinking about this a lot tonight, and I stumbled across a few references to some fabled devices called the sc1000ds which seems to address 3 of my biggest wants. An encoder for track select, a display of some sort to see the play-head position and a button for play/pause (or motor brake).

If midi controller output does become a thing for the sc500/sc1000 I would really like to see the fader be mapable too. I would assign it as a pitch fader in my software (might even go with a cheaper fader than an innofader, as I'm not going to use it as a scratch instrument). I want to set up a tiny modular dj rig, so if these could be used as midi controllers, I would likely get two of them.

DubbyLabby commented 3 years ago

One thought I've had is to load a timecode audio file as a sample, and then connecting the sc1000 to an audio interface. This would allow you to use the jogwheel, but the cue points wouldn't control your dj software.

You can add a dedicated midi controller alongside the sc unit until midi output arrives. Just avoid the regular controls for a while.

I've been thinking about this a lot tonight, and I stumbled across a few references to some fabled devices called the sc1000ds which seems to address 3 of my biggest wants. An encoder for track select, a display of some sort to see the play-head position and a button for play/pause (or motor brake).

All of these work internally and it isn’t granted they will work in midi output mode (the screen the less) so not sure if it’s related to the previous point or aside. Encoder and button could be implemented as midi outputs but not sure if base sc firmware has implemented encoder ATM. Buttons are plenty and configurable.

If midi controller output does become a thing for the sc500/sc1000 I would really like to see the fader be mapable too. I would assign it as a pitch fader in my software (might even go with a cheaper fader than an innofader, as I'm not going to use it as a scratch instrument). I want to set up a tiny modular dj rig, so if these could be used as midi controllers, I would likely get two of them.

Mappable fader is possible, assign it to pitch fader meanwhile using the audio with timecode maybe will require some tinkering… timecode usually overrides pitch control by its nature. If you are talking about direct jog encoder into midi control then it could be possible implement 2 jogs with just one sc board. The actual limitation for timecode is audio output. Olimex board only has one stereo output so it will not be possible to use 2 audio timecode signals at the same time.

errolkokbas commented 3 years ago

Mappable fader is possible, assign it to pitch fader meanwhile using the audio with timecode maybe will require some tinkering… timecode usually overrides pitch control by its nature. If you are talking about direct jog encoder into midi control then it could be possible implement 2 jogs with just one sc board. The actual limitation for timecode is audio output. Olimex board only has one stereo output so it will not be possible to use 2 audio timecode signals at the same time.

My plan is to have two sc500's, each playing timecode into a dj soundcard and to have a mixer in between the two. I want to create the world's smallest dvs setup. Using the sc's fader for tempo in this setup would make much more sense.

DubbyLabby commented 3 years ago

Why? If you need plug that into a soundcard... why not use a midi controller or cdj?

errolkokbas commented 3 years ago

Why? If you need plug that into a soundcard... why not use a midi controller or cdj?

Why do people climb Everest? I think it would be fun to have a the world's smallest modular dvs set up. I want to be able to carry the whole thing in pockets, without the need for a bag or case, just because I can. I have a couple all in one midi controllers, and they work fine, but none of them have light rings on the jog wheels, or any form of indicator for track position. CDJ's are big and expensive, pretty much the opposite of what I'm going for. I'm not so much into scratching per se, but I do want the world's most portable modular dj rig for beat juggling.

DubbyLabby commented 3 years ago

So you are going to plug into...? Raspberry? iPhone?

errolkokbas commented 3 years ago

So you are going to plug into...? Raspberry? iPhone?

iPad mini 4 (with a keyboard for track searching) through a denon ds1 dj interface. DJ player pro app works with timecode.

DubbyLabby commented 3 years ago

So you are going to plug into...? Raspberry? iPhone?

iPad mini 4 (with a keyboard for track searching) through a denon ds1 dj interface. DJ player pro app works with timecode.

I know but since you said “the smallest rig” I thought you were going smaller screen setup. Anyways seems legit but since djplayer pro has ana amazing support for encoders maybe it will be easier get some dedicated controller until Rasteri puts directly midi on this. As I said it will be possible to get 2 magnetic encoders working with just one sc board (even maybe just with the pic side and ditching the whole olimex part as the old scratchbox project worked back in the day). It will be even smaller and cheaper…

errolkokbas commented 3 years ago

Yeah, couple reasons I'm going with iPad mini. I already have one (and don't have an iPhone or Android...I use an oldschool T9 candybar phone), and with its keyboard it looks like a shrunken/miniaturized mac book, which adds to the aesthetic a bit I think. I don't know much about designing or programming projects like the sc, so having midi out would be handy, but for now I think I'll end up having a couple extra midi controllers next to the sc500's to control DJ player pro. Since there is a header for the fader on the sc boards already though, and there is pitch adjusting logic in the software (normally controlled through the jog wheel), being able to remap the fader in the sc to control pitch would be a welcome feature, regardless of midi out capability.

image

https://www.etsy.com/listing/811162898/bigknob-a-custom-programmable-macropad?campaign_label=convo_notifications&utm_source=transactional&utm_campaign=convo_notifications_010170_10683759063_0_0&utm_medium=email&utm_content=&email_sent=1629928880&euid=AJx4Sc1bGg_NgtMIwsxmmqkjkDxP&eaid=603831965981&x_eaid=ddc0c1927f

DubbyLabby commented 3 years ago

Nice.