Saturday, 21 December 2019

Python for Beginners 2

A beginners guide to learning Python.
It's a great language to learn if you are getting started in the world of computer programming.

Python for Beginners 1 is here:
Python for beginners
It contains episode 1, 2& 3.
Covers topics like IDEs, if, else statements, variables and functions.
Really basic stuff to get you started.

+++++++++++++++++++++++++++++++++++++++++++++++++++
-------------------------------------------------------------------------------------

Episode 4 
Introduction To Lists In Python (Python Tutorial #4)

Lists are a type of data like strings and intergers. 
Similar to arrays (in others languages like java).

Two of the most common commands/functions:
a.append() ..... this adds to a list
a.pop() ............. this removes from a list

a[0]  ............... retreive the first item in the list
a[1] ................. get the second item in the list
a[0] = 100  .......... this assigns 100 to the first item in the list

------------------------------------------------------
two ways to swap variables in a list"

temp = b[0]
b[0] = b[2]
b[2] = temp


or 

b[0], b[2] = b[2], b[0]

++++++++++++++++++++++++++++++++++++++++++++++++++

Episode 5 ..
Introduction to For Loops in Python (Python Tutorial #5)


a = ["banana", "apple", "microsoft"]
for element in a:
    print(element)
    print(element)
# This is a for loop .... it prints all the elements in the list

------------

for element in a:
    print(element)
# this can be substituted by
for e in a:
    print(e)

-----------------
b = [20, 10, 5]
total = 0
for e in b:
    total = total + e
print(total)

# answer is :
35

--------------------------
# the range function
# this creates a list containing a range of numbers starting at 1 and ending at 4
# 1, 2, 3, 4
c = list (range (1, 5))
[1, 2, 3, 4]

for i in range(1, 5):
      print(i)
#answer:
1
2
3
4
------------------------------------
+=
-------------------------------------------------------
# modulo operator
# gives the remainder of 4 divided by 3
# answer is 1
print(4 % 3)

++++++++++++++++++++++++++++++++++++++++++++++++++++

Episode 6
While Loops and The Break Statement in Python (Python Tutorial #6)


---------------------------------------------------------------------------------------
Links
+Download Python
https://www.python.org/
+ PYO - Ajaz sound studio
+ Wikipedia
+ https://www.simplifiedpython.net/

Basics.
Choosing a IDE(integrated Development Enviroment)
 https://www.simplifiedpython.net/6-best-python-ides/
+ PyCharm
+ Anaconda 


Tutorial Videos
+ CS DoJo
+ https://www.youtube.com/watch?v=_uQrJ0TkZlc 


Friday, 20 December 2019

Python for beginners

Python was conceived in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language.
Python strives for a simpler, less-cluttered syntax and grammar 
(Wikipedia)
The name comes from Monty Python's Flying Circus.

I've picked this channel ... looks well thought out. .... CS Dojo

This post covers installation, IDEs, if, else statements, variables and functions.
Really basic stuff to get you started.
I'll add to it over time.

Episode 1 - What are variables?
+ https://www.youtube.com/watch?v=Z1Yd7upQsXY

A variable is a reserved memory location.
It gives data to the computer for processing.
Data has many forms or types.
They can be: Numbers, Lists, Tuple, Strings, Dictionary, etc
Python supports two types of numbers - integers and floating point numbers.
Strings are defined either with a single quote or a double quotes.


Episode 2 - How to Use If Else Statements in Python (Python Tutorial #2)


elif ........... means "else if"


BMI calculator

Episode 3 - How To Use Functions In Python (Python Tutorial #3)

  def .... define
 def function1():
Using functions with a collection of code
Mapping
multiple arguments or inputs in a single function 
BMI calculator


 

---------------------------------------------------------------------------------------
Links
+Download Python
https://www.python.org/
+ PYO - Ajaz sound studio
+ Wikipedia
+ https://www.simplifiedpython.net/

Basics.
Choosing a IDE(integrated Development Enviroment)
 https://www.simplifiedpython.net/6-best-python-ides/
+ PyCharm
+ Anaconda 


Tutorial Videos
+ CS DoJo
+ https://www.youtube.com/watch?v=_uQrJ0TkZlc 


Tuesday, 17 December 2019

Bass Bot TT 303 - demo 2 - Alesso - Years

This is demo of the Bass Bot TT-303 by Cyclone Analogic It looks like a vintage 303 except it has presets and midi in/out., CV/gate out acts just like a vintage 303 as does programming.


 more audio demos coming.
Tune is Alesso's Years..... sequenced in Abelton.
The tt303 transmits and receives MIDI for Notes,Accent (velocity) and Slide (two linked notes).

Saturday, 14 December 2019

ProSound and Lighting - Wollongong synthesizer event

Synths in the Carpark

Some pics from last Saturday.
Thanks to Claude Spinelly of Prosound & Lighting , Wollongong for hosting this event.
Awesome sets and gear.

AE modular & Korg Electribe


The 5th Volt


...





The Kitchen Patcher

Post Global Disorder

PGD




Rodney






VITALS


V




Adam





Rory





Ilya






Andrew- virus installer






Videos to come.

DAFM synth - DIY build notes

My unofficial build notes for the DAFM synth.


I am in no way associated with the developer. These are just my personal build notes to help me trouble shoot, should I have any problems.
The 


The DAFM uses the YM2612(OPN2) and it's CMOS variant the YM3438.
The 2612 was used in arcade machines, the Sega Mega Drive/Genesis home game console (1988), and the Fujitsu FM Towns (1989)
It's a FM/PCM hybrid chip
The chip can have either 5 or 6 FM channels.
 (5 FM channels with 1 PCM or 6 channels without PCM)
   The YM2612 has six channels with four operators per channel.




tHE build is super easy. All parts are supplied and well labelled. If you can follow a recipe and know how to hold a soldering iron, you can build this.



 There are  8 algorithms. The envelopes, frequencies and LFOs can be changed to get a good range of FM sounds.

The midi section is on the top left. A standard DIN connector.
 Thats a MPR121 breakout pcb on the lower right.
It's a capacitive touch sensor controller driven by an I2C interface... probably what controls the cube keyboard.
Presets can be saved in the RAM memory or in a SD card as DMP files that can be opened with VGM trackers like Deflemask.


The top right section... LD33V power regulator & USB - type B, female.
The USB connector is  the power supply of the DAFM synth
The  LD33V powers the touch sensor


Also added the two lower encoders.
These are used to move through the DAFM Synth menus.

That pink board is the audio preamp.


The 8 MHz Crystal oscillator ... for the timing.
keep the dot on the bottom left.

This second pink PCB is a multiplexer.
It lies between the SD card & the DIN socket.

This TCA9548 I2C Multiplexer connects to the four OLED displays.
The four OLED displays share the same I2C address.


Next solder the four 0.96 I2C Monochrome OLED displays.


Now its time for the  STM32F103C8T6.
It's an arduino micro-controller of course






iT'S A wonderful thing when you see the synth power up on the first attempt.



Links
+ buy on tindie
+ Youtube - menu
+ Build instructions 
+ Wikipedia - YM2612 
+ Yamaha FM chips
+ Microcontroller Index Page
+ User guide
+ github - Genesynth   
+ Genesynth - blog
+ Genesynth - pjrc
----------------------------
FM Index
---------------------------

Friday, 13 December 2019

bEASTEK - pIXEL dRUM 1.3

sOME pics of the building of a Pixel Drum.
This is a Eurorack module I've bought as a kit.


It's a 12bit drum voice. I'm hoping it can also double as a  compact synth voice.
There are 32 different algorithms.




All parts supplied. :-)




I am not associated with Beastek. These pics are unofficial.
The official website with The BOM and official build notes can be found here:
http://www.beast-tek.com/pixel-drum.html

The two PCBs are connected via headers

 I like to solder these early in the build phase.



jACKS, ETC ... getting ready for attaching the front plate.


sTART soldering the pots and jacks once the plate is attached.

pcb 2

DIODES (ZIENER) & inductor

getting there ...

more diodes & ferric beads.





dsPIC33f128FJ128GP802 - the microcontroller





Notes:
+ All about inductors
+ Microcontroller Index Page

 

-----------------------------------------------------------------------------------------------
For more Euro DIY builds click here:
http://djjondent.blogspot.com.au/2017/12/diy-index.html
-------------------------------------------------------------------------------------------------