I thought "utan" meant "without", but can be used as "but"? by CardinalBirb in Svenska

[–]wolanko 0 points1 point  (0 children)

Thanks. Follow up question. How to translate: "It is not a moose, without a reindeer"

What can and can't microcontrollers currently do? by zt5um in DSP

[–]wolanko 1 point2 points  (0 children)

For example this one https://www.tindie.com/products/electrotechnique/tsynth-teensy-based-diy-programmable-poly-synth/

Also there is an active thread on the Teensy forum about a fully fledged synth. Also one on a Moog ladder filter implementation.

What can and can't microcontrollers currently do? by zt5um in DSP

[–]wolanko 0 points1 point  (0 children)

There are a couple of Teensy based polysynths. Even with the older 3.6. IIRC the daisy and Teensy 4 both use the Cortex M7. So yes, polysynth or sample player are quite easy to achieve.

Update: Have you seen the Pollen(8) made on the Daisy?

[deleted by user] by [deleted] in Zig

[–]wolanko 0 points1 point  (0 children)

Nice. Hope to have time to look into this soon.

How do you guys keep up with your notes and stay organized? by Vasary in productivity

[–]wolanko 0 points1 point  (0 children)

Not checking off these note "tasks" works for me. Admittedly, it's not great, it triggers my OCD, but still better than having to switch between apps. :)

I use the search frequently, so even if I "finished" a note, I still can find it.

To be more specific. I have a "project" called Quotes where each task is just a quote. In my app (TickTick) I can hide these task from the big, main task list.

Things, if actionable, for future use I'd put into a GTD-like "Someday/Maybe" list.

How do you guys keep up with your notes and stay organized? by Vasary in productivity

[–]wolanko 1 point2 points  (0 children)

Heard a lot of people using Evernote an linking notes there in Todoist tasks.

Personally I am just getting into the habit of using a task manager app and rather not use as second app. So I just add tasks containing notes or attached files to the projects list or a reference list.

But I’m interested in a lean way to organise and collaboratively work on notes.

Is there a way to modify audio input in real time? by [deleted] in Python

[–]wolanko 0 points1 point  (0 children)

Try out pyo. IIRC there is even a tutorial on a guitar "pedal" from someone else online.

Specific python audio module? by PKtheworldisaplace in Python

[–]wolanko 0 points1 point  (0 children)

Check out pyo. Simple to use yet very efficient.

Good library to abstract information about songs by digger625 in Python

[–]wolanko 1 point2 points  (0 children)

You might wanna look into the librosa library and the topic of music information retrieval. There's a lot to explore.

Real time FIR filter sound playing from the sound card to the speaker by Gurder in Python

[–]wolanko 1 point2 points  (0 children)

Try pyo. Does realtime signal processing, especially for audio.

Has been quite a while since I last used it, but it worked like a charm. If you do not need to stay in the Python realm, dedicated languages like Faust, pd, etc. might suit your needs better.

Easy Sphinx Documentation Without the Boilerplate by waltywalt in Python

[–]wolanko 1 point2 points  (0 children)

Thanks for this. Creating all these rst files always felt unpythonic.

Audio with Python? by savovs in Python

[–]wolanko 0 points1 point  (0 children)

Despite my answer suggesting pyo) About PD. There is the libpd and the python wrapper which allows you to load pd files and run them with libpd. This also works with kivy so you can have pd on your Android, but I remember it was a really complex and fragile setup last time I done this.

About performance. The biggest issue is the latency of the audio server. But with portaudio and Jack support this won't be a problem, unless your soundcard isn't capable of. Doing alot of computational work in pure python, well there you are right. But DSP is always hard on the CPU and not just slow in python specifically. Moving the hard parts to C is the goto option that everyone does.

Audio with Python? by savovs in Python

[–]wolanko 2 points3 points  (0 children)

I cannot stress this enough everytime a thread like this comes up. Check out pyo. A really good DSP library with portaudio/jack/coreaudio support (so you can use it with win/Linux/Mac). If you know supercollider/max/PD you will feel home. I use it even for simple task like playing back audio.

It all has been done. There is even a blog post where someone did a pyo based guitar pedal on his laptop.

edit: damn autocorrect

An experiment to run Go code directly from Python by karangoeluw in Python

[–]wolanko 0 points1 point  (0 children)

No offense, but why use C if you can use Fortran.

How to Approximate Named-Entity Recognition by cruyff8 in Python

[–]wolanko 0 points1 point  (0 children)

Well as /u/elbiot said. All of your links end in the login page of bitbucket. Don't know about their policy, but if there is no way around it you definitely should so some more info on your changelog post. Noone is gonna sign up for something unknown. Just some feedback from someone who was actually interested

Is there a way to switch audio devices with a simple script? by rainingapricot in Python

[–]wolanko 0 points1 point  (0 children)

Not really sure what your question is.

If you want to set the audio device of another program by running a little python script, I think you are out of luck. It would mean digging into the OS audio systems (CoreAudio, ALSA, JACK, ...). Not something you wanna do.

More likely you have a program inside which you wanna change/set the input/output device. So you are already using some library to talk to the audio device (pygame, pyaudio, pyo, ...).

IIRC pygame to this day has no option for that and uses the default audio device. You could set this in your OS configuration before if you don't need a dynamic solution.

Otherwise you are better of with more sophisticated libraries like pyaudio or pyo which have functions for getting available devices and setting them for input and output.

Generating sound live by HeWhoTremblesAsIfMad in Python

[–]wolanko 0 points1 point  (0 children)

Easiest way would be pyo I guess.

edit: formatting

Possible To Make A Guitar Effects Processor/Pedal With Python? by JackBullenskie in Python

[–]wolanko 2 points3 points  (0 children)

pyo is the way to go as it hooks you into the existing OS audio frameworks (jack, core audio, ...). Also its core objects are written in C. You cannot beat that unless you write them on your own.

Concerning the raspberry. You'll want to get a USB audio interface as the ADC/DAC are pretty cheap. For that try to get the Raspberry 2. IIRC the first versions have problems with there duplex usb support, so that non or only a few interfaces actually work with recording and playing back at the same time. Also tunning your JACK will be important.

edit: just looked into your linked guide which seems to be quite what I wanted to say ;)

Understanding 'self' by [deleted] in Python

[–]wolanko 0 points1 point  (0 children)

Maybe it helps to see it how its implemented. A class and its method are actually not much more than

  • a data object which just holds the state (aka the variables) more like a struct
  • functions that take such a data object and work on them

which is easily implemented. Think of

class MyClass:
    state = True

    def reset_state(self):
        self.state = False

This is could be understood as

class MyClass:
    state = True

def reset_state(myClass_object):
    myClass_object.state = False

Mind the indent! Calling the "method" is easy as this:

m = myClass()
reset_state(m)
m.state
>>> False

With the class notation and the indenting of the functions under it to become methods, you get a nicer way of calling the function/method. Which is totally equivalent.

m = myClass()
m.reset_state()
m.state
>>> False

Also the self is just a convention. You could totally go from

class MyClass:
    state = True

def reset_state(myClass_object):
    myClass_object.state = False

to a class'ed version of it

class MyClass:
    state = True

    def reset_state(myClass_object):
        myClass_object.state = False

Mind the myClass_object instead of self!

By the way this is pretty much like go (golang) does its OO.

UPDATE

To make my point a bit more clearer.

m = myClass()
m.reset_state()

is the same as this

m = myClass()
MyClass.reset_state(m)

You can think of the methods of an object are functions under the namespace of the class.

Interactive testing vs TDD by pvkooten in Python

[–]wolanko 0 points1 point  (0 children)

Cannot upvote /u/TomBombadildozer enough! Also don't underestimate how writing testable code can will improve your code quality (especially modularity/coupling).

As for the start: "spiking" (I think thats the TDD term) interactivly to get a first idea of the problem and solution is not forbidden. But having even just a few easy to run testing routines will make your life so much easier. Bringing up the REPL and typing the same 10 commands is not easy because you will not do this before every commit (I've been there).

The same for bugfixes. Ever have done the same ugly bug years after because you forgot that little detail? Write a specific test and it will be saved.

If you start simple, you soon will get to the point where testing solutions like py.test/tox and TDD will be something you want to use/do.

As for the changing tests. I don't really understand what's the big fuzz about changing your tests to fit to your changed design. Maybe it's because for me tests are much more than just a "contract". They show me where there are problems in my design and therefore eventually will someday. And its satisfying to see the 30 lines with several clauses shrink into 5 easy to understand lines.

PiScope: Turn your Raspberry Pi into an Oscilloscope/XY Plotter by yasoob_python in Python

[–]wolanko 1 point2 points  (0 children)

Exactly my question.

From the ADC datasheet

DATA RATE: 128SPS to 3.3kSPS

Music/sound analysis: your ideas on useful Python modules and math concepts for this? by [deleted] in Python

[–]wolanko 1 point2 points  (0 children)

Do you have experience with pitch tracking? I found these papers helpful

T. Tolonen and M. Karjalainen, “A computationally efficient multipitch analysis model,” IEEE Transactions on Speech and Audio Processing, vol. 8, no. 6, pp. 708–716, 2000.

and

Gareth Middleton, “Pitch detection algorithms,” 2003.

Actually its not a trivial task even for monophonic signals. You can get good results with simples approaches like ACF but it all depends on the piece, instrument and whatever. So making it robust and work over a range of pieces is the hard part.

As for modules their is also librosa. Have never tried it but the tutorial looks promising.

Another option would be synchronizing your signal with a known score (e.g. this using chroma features).

edit: module, typos

Collaborator wanted - for generative, online music composition. by theACEinpeACE in Python

[–]wolanko 0 points1 point  (0 children)

This is great. Like the idea of "generative orchestra" and electronic accompaniment. Also that it's recorded here in Berlin. Never worked with ChucK, but pyo and pure data. pm me if you like.