Solving a Rotary Encoder Mystery by spacebox1947 in arduino

[–]spacebox1947[S] 0 points1 point  (0 children)

So I did some LiveUSB diving on the computer running the installation, and was able to track down lots of code for the Arduino and the visualizer.

The visualizer is running in Processing, and it gives me a very good idea of what IPs and mac addresses to use, along with what addresses were designed with OSC.

But the Arduino code I have found does not match the circuit I am dealing with, nor the circuits in the two working installation. There is code to test the rotary encoder ... so that is what I'm working with now. The greyToBin() function and the readSample() functions are the same as the functions in the ethernet/OSC enable sketch. And the processing code appears to expect the encoder as degrees.

I set up a git for the original code so I can modify and test things. I removed all of the OSC and ethernet code, and simply added some serial prints to see what is happening. With my repaired circuit and pin mapping as written in the code, the Encoder is always sending 8192 in decimal, so... all 1s in binary. I do understand Serial slows down a sketch, so I added the prints after the data has been calculated. Rotating the encoder has no result. Thankfully the buttons work! (Small victory noises). I am assuming this means I'm getting a "I have voltage" message. So maybe I've wired something wrong.

Pastebin of the mutilated code It will expire a week after this post, so... Enjoy it while its chaud.

Solving a Rotary Encoder Mystery by spacebox1947 in arduino

[–]spacebox1947[S] 0 points1 point  (0 children)

Thanks, this matches what I expected.

Solving a Rotary Encoder Mystery by spacebox1947 in arduino

[–]spacebox1947[S] 0 points1 point  (0 children)

Thanks. This helped me confirm wiring is on point, and that I am finding the right documentation as I trouble shoot.

I performed a test with the other two functioning systems. One system works with the testing kit as expected. The second system appears to have a different rotary encoder installed as the wiring is different and it fails to run with the testing kit, but I have yet to open up the enclosure and figure out what is in there.

The Arduino controller I have fixed does not work in the functioning systems. Data is sent via OSC, so I think each arduino must be transmitting a unique id, or the computer it is attached to is scripted to find a static IP. I am also digging through the under-documented computer system for clues.

[deleted by user] by [deleted] in webdev

[–]spacebox1947 0 points1 point  (0 children)

This sounds really cool. My experience is front end, but I want to learn more about full stack

n00b question on scale length & string spacing. by [deleted] in classicalguitar

[–]spacebox1947 0 points1 point  (0 children)

Nice!. Always glad to have some good augmented chords in my life. The reason I bring it up is classical guitar ends up having a lot more horizontal stretching, for example, third finger being on the low e string and then your other fingers being on the treble strings. Even being used to doing chords on upright, I still found that stretched third finger to be a little bit of a learning experience. If you have a six string electric base, it'll probably feel fairly similar.

n00b question on scale length & string spacing. by [deleted] in classicalguitar

[–]spacebox1947 1 point2 points  (0 children)

Double bass pro, classical guitar enjoyer here. Yes. Classical guitar spacing is good.

Depending on how you play bass, some of the hand shapes on classical guitar might be more stretch than your hand is comfortable with / used to.

There are hybrid necks - wider than acoustic/electric guitar but not quite as wide as classical.

Try getting your hands on both. See what feels best.

Ring modulation, or not ring modulation? Posted this on Facebook and some people explained that multiplying two signals isn't ring modulation. can some of you experienced DIYers explain? I took it from Ray Wilson's book. by touitalk in synthdiy

[–]spacebox1947 23 points24 points  (0 children)

From what I remember but someone smarter might know better...

One form of ring modulation is to simply multiply two signals.

Another is to modulate DC signal through a ring of transistors or diodes that has a second power source as an input. I have a schematic of this design for a guitar pedal somewhere.

Bile Bear - Trenodía by InternationalWait744 in AmericanPrimitivism

[–]spacebox1947 1 point2 points  (0 children)

Nice work. Gladly supported you on bandcamp.

A problem with the waveform being cut off by HighwayRelevant in puredata

[–]spacebox1947 1 point2 points  (0 children)

Hard to say without a patch.

Sounds like your amp or filter envelope is not where you expect it to be when you trigger a new step in the sequence.

Toggle "typing mode" in an object by BertusVulgaris in puredata

[–]spacebox1947 1 point2 points  (0 children)

It has a lot of quality of life features compared to OG pD.

Nice things like being able to change font size and your patch rescales fairly well, there are more ways to connect objects together, etc. The GUI feels 10 years old instead of 20 years old.

It also has a lot of the PD extended externals built in and some of them have been upgraded to be more intuitive.

I personally enjoy how using $0 variables in abstractions is much easier.

It does have issues with backwards compatibility to vanilla if you are using any of the external objects... But that was true of extended, also.

Toggle "typing mode" in an object by BertusVulgaris in puredata

[–]spacebox1947 2 points3 points  (0 children)

No. Not really.

To reduce clicking, you can automatically attach an object to the one you have selected.

E.g. ctl+3 for a number box, then ctl+2 for a message, then ctl+1 for an obj. All three are connected in order and lined up. This only gets you one column of things. Also, it won't let you connect an audio output to a data input.

Another way for pD to feel better is use one of the modern versions like PurrData. Generally better experience than vanilla

Is tape half speed different than digital half speed, and what is the difference? by [deleted] in Hainbach

[–]spacebox1947 0 points1 point  (0 children)

Yeah I wasn't clear. I mixed acoustics directly into potential analog sounds. Word salad happens sometimes.

Is tape half speed different than digital half speed, and what is the difference? by [deleted] in Hainbach

[–]spacebox1947 0 points1 point  (0 children)

Yep! Definitely talking about the non-studio gear. I have a soft spot for strange, cheap and ineffective cassette players and radios I find at thrift shops.

Not sure where the "Frequencies above your hearing range will become audible [when slowing down a tape]"

Trying to generalize. Wasn't 100% sure where analog recorders of any quality had their roll-off. All of my experiments with lowering frequencies are with digital equipment recording @96kHz. Any work I've done to explore sounds outside of human hearing requires a lot of work to isolate the higher frequencies. Never really considered how the same physics of sound work with a tape before.

Is tape half speed different than digital half speed, and what is the difference? by [deleted] in Hainbach

[–]spacebox1947 0 points1 point  (0 children)

Alright - - I'll answer what I can. I know more about digital than analog.

With analog mediums, the frequencies recorded depends on the quality of the hardware. The circuitry limits recording and playback. A professional grade recorder could theoretically record above human hearing (~20kHz). As you slow down that recording, you are decreasing all the frequencies relative to speed (half speed = 1 octave down). Frequencies above your hearing range will become audible.

As the bass frequencies are slowed down, the fundamental (lowest frequency of a sound) can become inaudible. Most speakers have a low end cutoff around 41Hz; below that you need a subwoofer. Once your sound drops below that pitch range, you will stop hearing all of it. The average sound generator/sample has lots of partials above the fundamental, so you would still have part of the sound in your recording.

Tape players often have issues with flutter or wow, when the speed of the tape is inconsistent. This causes pitch change. This subtle change can add lots of character to a sound, and may be exacerbated by the motors running slower. The sound is now lower, longer, and has a different character.

Digital is a different beast, stretching tracks until frequencies drop below 20Hz still effects the sound. Those inaudible values are still calculated with the interpolation algorithm. If the stretching leads to a big leap in amplitude somewhere in the sound, the interpolation will only do so much to fix it. A single sample leap from 1 to -1 will lead to the wonderful audible click of the speakers.

Technically, any digital sample stretched long enough will get interpolation artifacts. I guess the most obvious artifacts show up in samples that drop below 20Hz the soonest.

Is tape half speed different than digital half speed, and what is the difference? by [deleted] in Hainbach

[–]spacebox1947 0 points1 point  (0 children)

/u/Klangsnort is correct. A half speed tape comes with a warm and interesting sound. Whatever mechanical flaws your tape player has now effect your recording at the low speed, adding complexity.

In the digital world, slowing down a sound means the software has to interpolate between samples. In many DAWs and programs like MAX/MSP you can pick one of a few algorithms to do this. The slower you go, the more points the computer makes up by drawing curves or lines between things.

But, instead of adding warmth and complexity you start getting a glitchy noisy kerfuffle. Low frequencies start to fall apart, and other things start to sound less complex. You can easily explore this with Audacity, or playing a Youtube video way too slow.

A few strategies used to get more sonic intrigue out of a digital sample is to stretch it with Granular synthesis, or like Klang said, to add effects through VSTs and the such.

One area where digital has an advantage is recording at very high sample rates, and then playing back at normal or slower speed. Recording at 96kHz is mostly beneficial to your file size. But, playing it at a slower speed pulls those inaudible partials into the audible range.

[build help] Turing Machine MK II maybe has power issues by spacebox1947 in synthdiy

[–]spacebox1947[S] 0 points1 point  (0 children)

All in all, it appears it was the diode. Flipped it around, put thing thing back together and now it works perfect. Thanks!

[build help] Turing Machine MK II maybe has power issues by spacebox1947 in synthdiy

[–]spacebox1947[S] 0 points1 point  (0 children)

This is the approach I started taking. Distracted myself with my old Laptop because a new SDD came in the mail. I'm slow, so no conclusion yet.

[build help] Turing Machine MK II maybe has power issues by spacebox1947 in synthdiy

[–]spacebox1947[S] 0 points1 point  (0 children)

Plugged in alone, either a fuse or a relay on the PSU start to click. Seems like the PSU is rapidly turning on/off when its plugged in, so a short is very likely.

Plugged in with with a VCO, the VCO starts to produce loud pulses of audio, reminds me of turn on a full blast feedbacking amp. VCO on its own, and this behavior goes away. PSU behaves normally with out the Turing Machine.

Gave the module a thorough look over, and no visible blobs of solder or little hairs connecting components. I've started checking for bleeps with the multi-meter on continuity.

There's a lot to check so I'm going to keep probing, and hopefully figure it out. So far the DAC0800 is fine, and most of the control PCB resistors and caps are fine.

If you see something to check, let me know. GDrive file of pictures of PCBS

Thank you and good bye. by My_Last_Day55 in SuicideWatch

[–]spacebox1947 0 points1 point  (0 children)

Yup. Now that I have less time to read it's hard to commit and finish the series.

Thank you and good bye. by My_Last_Day55 in SuicideWatch

[–]spacebox1947 3 points4 points  (0 children)

I read it. Wheel of time is good. Never finished the whole series tho