Learn Audio DSP 1: Getting started with Octave and making a sine oscillator

  Рет қаралды 50,883

Dan Prince

Dan Prince

Күн бұрын

Пікірлер: 80
@OttosTheName
@OttosTheName 5 жыл бұрын
For those following along using 5.x, you now have to type the following to generate the .wav file. audiowrite('test-tone.wav', tone, fs); It's a new command, audiowrite instead of wavwrite and you have to change the order a bit.
@cyanozoid2706
@cyanozoid2706 4 жыл бұрын
Dude, you're awesome.
@rasmusmerten9840
@rasmusmerten9840 4 жыл бұрын
thx
@fredyklug3512
@fredyklug3512 2 жыл бұрын
thanks, you helped me out of my frustration!
@themarktron
@themarktron 2 жыл бұрын
fu****** OCTAVE why f******* change commands I hate that languages
@louis-augustinniamkebrown
@louis-augustinniamkebrown Жыл бұрын
Thanks a lot , will give this a test right now
@cyanozoid2706
@cyanozoid2706 4 жыл бұрын
For anyone having problems saving the file 'test-tone.wav', the function has been changed. audiowrite('test.wav', tone, fs); worked for me. Hope this helps.... Also, great video!
@Auxilor
@Auxilor 7 жыл бұрын
being someone who has worked in music production for only about 2 years (and is pretty mediocre xd) I have been lookign around to find a way to do things like this. So far, this tutorial has proved useful!
@МиленаКаленова-ь5к
@МиленаКаленова-ь5к 4 ай бұрын
Очень интересная тема, здорово изложена. Спасибо Вам за это видео!
@sriharsha7709
@sriharsha7709 4 жыл бұрын
Thank you for making these videos, your efforts wont go waste
@scriptwarlock
@scriptwarlock 6 жыл бұрын
wavwrite is depreciated in v4.3.93 must use instead the audiowrite. good tuts Dan keep it up
@themarktron
@themarktron 2 жыл бұрын
hate changing languages
@m.h3846
@m.h3846 4 жыл бұрын
Wow, nice video! I’m glad you criticized DSP for all of his ebegging and lies. I mean, to hear someone else use music to talk about the fact that DSP has scammed his fans dozens of times really brought it home. Great analysis, can’t wait for your DSP anthology.
@flywittzbeats4008
@flywittzbeats4008 Жыл бұрын
Best audio dsp tutorial I’ve ever seen. My hero ❤ my question now is how does the interpolation from but to bit work??? Thanks so much 🎉
@workethicrecords5901
@workethicrecords5901 8 жыл бұрын
This is perfect, I can't wait for the coming videos! I just started digging up DSP learning resources today and this hit the spot.
@lewislepton
@lewislepton 7 жыл бұрын
very well presented, recorded & described. subscribed. would really like to see more in this series. also really nice to see someone else who types in DVORAK ;)
@mikalthompson1238
@mikalthompson1238 6 жыл бұрын
Dan I have to be honest this was amazing! I'm so excited I found your channel, schools not possible for me but I have been reading a lot about DSP and want to know more great video!
@pipelineaudio
@pipelineaudio 6 жыл бұрын
School in the traditional sense isn't as or even maybe at all important compared to what it is you do with the knowledge. Think how much our lives have been changed by VSTs made by people with little or no formal schooling. Thank you Dan for this video!
@eggmuncher6445
@eggmuncher6445 8 жыл бұрын
looking forward to the next. I thought at first, oh, here's another guy who thinks it's a good idea to teach me a programming language other than the one I've already learned, but after struggling all day with function pointers, the sound of that sine was like cool rain upon my feverish brow
@DanPrince
@DanPrince 8 жыл бұрын
Hahaha I'm glad you liked it! I like to think of Octave/Matlab as an awful programming language, but the absolute best graphing calculator. Definitely way simpler than C++, or anything else where you have to manage pointers!
@cyanozoid2706
@cyanozoid2706 4 жыл бұрын
You, my sir, are a legend.
@hamiltool
@hamiltool 6 жыл бұрын
This is absolutely brilliant. Thank you Dan!
@happilyconfuseddog8951
@happilyconfuseddog8951 8 жыл бұрын
this was fantastic! your teaching style is great! really looking forward to more!
@thedrumengineer
@thedrumengineer 8 жыл бұрын
Awesome video, Dan!
@IMOXPLUS
@IMOXPLUS 7 жыл бұрын
Great tutorial...clear and to the point....keep up the good work...
@code8180
@code8180 6 жыл бұрын
This is fascinating! Thank you so much for sharing your knowledge. Hope you continue with this series. Learned alot! :D
@apfelkuchen4672
@apfelkuchen4672 4 жыл бұрын
This video is great! I decided on following the series and it's quite fun also :)
@dardonj
@dardonj 3 жыл бұрын
Thanks a lot for sharing your knowledge.
@sriharsha7709
@sriharsha7709 4 жыл бұрын
Thank you for sharing your knowledge on youtube
@analogmatthew
@analogmatthew 6 жыл бұрын
Awesome video series, Dan! Great work!
@DanPrince
@DanPrince 6 жыл бұрын
Matthew Fecher thanks! I hope you’ll subscribe and check out the other videos as well! 😄
@analogmatthew
@analogmatthew 6 жыл бұрын
Oh, I subscribed. ;)
@loveforallbxlmannif
@loveforallbxlmannif 2 жыл бұрын
Why not Flowstone ? That's a really great program to see and ear instantly what we do in dsp.
@DIYGuitarMods
@DIYGuitarMods 4 жыл бұрын
Hi Dan, I recall hearing in one of your videos that you moved to Pittsburgh. Do you still live here? If so, let me buy you a coffee sometime! I'm working on some analog stuff that I'd love to show you. BTW, Loved your video on convolution reverb.
@SynthMagic
@SynthMagic 6 жыл бұрын
Hi Dan, this channel is awesome! I'm loving these videos. One thing that I have always wondered about is how a plugin creates a faithfull osc of a Minimoog or some other synth using maths. Do you ever plan on making a video to show the methods of that? I'm guessing the maths involved will be mind blowing :) Do they analyse the wave generated by the osc or something and then work the maths out?
@DanPrince
@DanPrince 6 жыл бұрын
You're in luck pal, I just uploaded the next video in the series that talks about how many software synthesizers generate waveforms for their oscillators! It's probably simpler than you think too. Of course, making something that sounds as good as a Minimoog takes a lot of work, but we can get most of the way there with just a little effort. Here's the link: kzbin.info/www/bejne/i4ekeYmnmZp4pNE
@SynthMagic
@SynthMagic 6 жыл бұрын
Thanks Dan. I'm just brushing up on my maths.
@jkuebler89
@jkuebler89 5 жыл бұрын
Wow what a great channel, teaching exactly what been wanting. Sub! Thanks.
@jennyott1200
@jennyott1200 6 жыл бұрын
Freaking AWESOMNESS!!!!! Thanks great video.
@didierjoomun
@didierjoomun 6 жыл бұрын
Great tutorial ! thanks a lot :) I'm going to test and play with it right now :)
@maxkonyi
@maxkonyi 7 жыл бұрын
Very cool :) Thank you!
@filosquartapecore
@filosquartapecore 8 жыл бұрын
Subscribed, i'm really interested in the topic! Will you cover concepts of antialiasing, band limiting and stuff?
@DanPrince
@DanPrince 8 жыл бұрын
Yes! In fact, the next video I'm planning is generating oscillators -with- aliasing by just drawing them directly with discontinuities, just to prove a point. You can get some cool retro video game sounds that way, but of course it's not the "correct" way. I'm planning to cover anti aliasing later, as well as effects like delay, modulation fx, filters and EQ, etc. Let me know if there's anything else you'd like to see!
@SuperJV4x
@SuperJV4x 5 жыл бұрын
fascinating - but what I have heard in demos are fairly crude sounds. Is it possible to do something really advanced with Octave such as the complex timbres possible with Omnisphere, etc?
@alexbooth5981
@alexbooth5981 5 жыл бұрын
Ah Radiohead, yes I too am a man of great culture *sniff*
@denbeibaron7797
@denbeibaron7797 2 жыл бұрын
It's near end of 2021 ... I just found this gem while looking around for working with octave for I/Q data analysis, I haven't found it yet. Anyone that could help me with any pointers to that is much appreciated.
@mikael5743
@mikael5743 7 жыл бұрын
Amazing, thank you SO MUCH
@alterdings
@alterdings 6 жыл бұрын
very interesting, thanks!
@Machiuka
@Machiuka 4 жыл бұрын
The newest versions of Octave use audiowrite instead of wavwrite. Example: audiowrite(filename,tone,fs);
@mimmotronics
@mimmotronics 7 жыл бұрын
It's great to learn in an environment like Octave, MATLAB or Python, but what advice do you give for those trying to get into hardware after already having learned on these simpler platforms?
@ionre24
@ionre24 6 жыл бұрын
Ctrl + L also clears the screen
@aryamicksingh1898
@aryamicksingh1898 5 жыл бұрын
Hi! That was really helpful. Can you you also teach how to do processing for stereo audio.
@TomLeg
@TomLeg 4 жыл бұрын
fs - sampling rate, is in samples per second, not cycles per second, so shouldn't really be annotated as 'Hz'.
@eduardoortiz4461
@eduardoortiz4461 3 жыл бұрын
Hi, excuse I have a questions. Which high-level programming languages can be used for DSP, spec? Can they be used for digital signal processors? Thanks a lot
@declannnadozie4595
@declannnadozie4595 6 жыл бұрын
By tone, it means a matrix of amplitudes?
@lordbyte7
@lordbyte7 4 жыл бұрын
hi there Dan: there is a paper with the title: real-time pitch tracking in audio signals with the extended complex kalman filter Can this be done in gnu Octave: there is a github page with matlab code. I have the idea this could be useful if it runs on a raspberry pi or similar hardware as an effect processor. I have a background in C and C++. But no DSP.
@MattHayes
@MattHayes 8 жыл бұрын
What equation would you use to generate a square or triangle wave? They seem like they would be a fairly simple equation as well.
@DanPrince
@DanPrince 8 жыл бұрын
Great question, this is actually what I am planning to do in the second video! There is a technically "wrong" way to do it that results in some aliasing that is pretty simple where you basically just directly draw whatever waveform you want, and some more involved ways that reduce aliasing by using the Fourier series or band limiting or other things. I'll give a simple explanation next and slowly introduce the more advanced techniques.
@workethicrecords5901
@workethicrecords5901 8 жыл бұрын
Just a guess, but do we get different waves my multiplying sine waves by the desired harmonics? Like that weird sinewave* 1/3 aplitued* 3* ferquency * 1/5th amplitude * 5 times frequency thing?
@DanPrince
@DanPrince 8 жыл бұрын
I think what you are describing is an additive synthesis approach using something like the Fourier series. Definitely one valid way to get arbitrary waveforms is to add sines at different frequencies and amplitudes, and there are some rules you can use to help you get different waveforms. I'll go over this technique and others in future videos.
@hobbypilots794
@hobbypilots794 7 жыл бұрын
Hi, can please share your inputs what does the below details means Sound pressure levelat 24 W/36 W / 1 W (1 kHz, 1 m)
@amparohidalgo6126
@amparohidalgo6126 5 жыл бұрын
how can I modulate the duration of a tone I want to create?
@hosoiarchives4858
@hosoiarchives4858 6 жыл бұрын
I downloaded the program and it nearly destroyed my computer. Is there another program?
@albertom6239
@albertom6239 6 жыл бұрын
very clever video! anybody knows how to play a sound from the python interpreter?
@ogueyratogeyrat7448
@ogueyratogeyrat7448 4 жыл бұрын
Dsp tries it
@m.h3846
@m.h3846 4 жыл бұрын
Fuck this game. Nothing I could do.
@rchrdnsh
@rchrdnsh 6 жыл бұрын
Gave up on trying to install Octave on macOS...nothing makes sense... :-(
@DanPrince
@DanPrince 6 жыл бұрын
Richard Nash sorry to hear that! Octave is a little finicky on Mac for sure. I recommend using the binary installer from their site instead of Homebrew. What did you try and what happened?
@rchrdnsh
@rchrdnsh 6 жыл бұрын
I tried home-brew and got as far as the command line interface, but not the GUI...dunno how to use the binary, or whatever that may mean...hopefully it's not too tough...
@DanPrince
@DanPrince 6 жыл бұрын
Richard Nash sorry, by “binary” I just mean the installer from their site and not from a package manager. Try this download, it’s linked from the wiki page Octave for macOS: sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/2016-07-11-binary-octave-4.0.3/octave_gui_403_appleblas.dmg/download
@rchrdnsh
@rchrdnsh 6 жыл бұрын
yay! that worked, thank you :-)
@Auxilor
@Auxilor 7 жыл бұрын
121:0 like/dislike ratio 10/10 WOW
@frechjo
@frechjo 6 жыл бұрын
It's 211:2 now. 10(211/121)/10(2/0) = NaN WOW?
@rafiqul84
@rafiqul84 6 жыл бұрын
Bugged sound mechanics
@m.h3846
@m.h3846 4 жыл бұрын
Nothing I could do.
@mustaphaalkhafaaf5512
@mustaphaalkhafaaf5512 4 жыл бұрын
you act a lot with your glasses and eyes ,,, dont fake it just be yourself ... wearing a glasses and talking smart dosent need an effort , it shuld be natural ...
@m.h3846
@m.h3846 4 жыл бұрын
Yeah, you know all about sounding intelligent, completely naturally.
@Bm23CC
@Bm23CC 7 жыл бұрын
this is a bit like R
Learn Audio DSP 2: Basic waveforms and sampling
22:20
Dan Prince
Рет қаралды 17 М.
Creating Guitar Effects with DSP
20:47
sourceaudioeffects
Рет қаралды 20 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 66 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 3,8 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 4 МЛН
Sharp GF-909 снова в строю
20:58
KEV_AUDIO
Рет қаралды 20
What's The Longest Word You Can Write With Seven-Segment Displays?
8:56
Lessons Learned from a Decade of Audio Programming
26:14
A Better Explanation of Impedance for Audio Signals
18:07
ALDER AUDIO
Рет қаралды 31 М.
Ivan Cohen - Fifty shades of distortion (ADC'17)
52:40
ADC - Audio Developer Conference
Рет қаралды 17 М.
Creating a window - Software from Scratch (Ep. 1)
1:04:12
Muukid
Рет қаралды 34 М.
How Digital Audio Works - Computerphile
12:25
Computerphile
Рет қаралды 263 М.
Audio DSP Programming Basics - MusicTech Singapore
41:13
Engineers.SG
Рет қаралды 23 М.
The Golden Rules of Audio Programming - Pete Goodliffe - ADC16
51:25
ADC - Audio Developer Conference
Рет қаралды 49 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 66 МЛН