Comment on I can't code.

<- View Parent
Wander@yiffit.net ⁨11⁩ ⁨months⁩ ago

Sorry for the late reply. If you’re interested in music, you could give both javascript or C# a try. C# works integrated with the operating system and is not sandboxed by the browser, which means that you could do nifty things like actual sound processing and interact with sound devices etc.

In general you will want to start with a console application that receives user input, does something and even prints the output. Let me give you an example of playing an audio file in C#

LINE 1: System.Media.SoundPlayer myAudioPlayer = new System.Media.SoundPlayer(@“c:\mywavfile.wav”);

LINE 2: myAudioPlayer.Play();

In the first line we are calling a pre-existing blueprint (library) that knows how to create an audio player. This blueprint can be located in System > Media > SoundPlayer within the collections of libraries. We are giving this virtual audio player a name and called it “myAudioPlayer”. Then, after the “=” sign we are giving it the instruction to be created with a preloaded file that would be found in “C:\mywavfile.wav”.

In the second file we are commanding our newly created virtual audio player and telling it to play the file. Please note that this audio player would not have a visual interface yet. You would hear audio coming from the speakers but no way to pause. Fortunately C# / .NET (.NET are the pre-existing libraries that you can use), has a drag-and-drop way to create windows application interfaces with buttons via the “Visual Studio” editor, so you could potentially create a drag-and-drop interface and bind a button with a Stop symbol to the instruction “myAudioPlayer.Stop();”

This is just a very very basic example, but object oriented programming often boils down to this: create virtual representations of something and then command them to do something.

If this has peaked your interest check out this playlist of a full complete programming course in C# which is what I used to learn programming years ago. www.youtube.com/watch?v=4vHBgwcz_I4&list=PLpQi14y…

In the end it’s all about creating a series of instructions that the computer will follow. The trick is to learn what these instructions mean and to not be scared by their syntax, because behind every scary looking syntax there’s just an instruction that can be explain in human language.

source
Sort:hotnewtop