Shop OBEX P1 Docs P2 Docs Learn Events
Synth Freq. — Parallax Forums

Synth Freq.

gambrinogambrino Posts: 28
edited 2008-11-10 14:38 in Propeller 1
Hello , i would like to ask if someone changed the code in the library Synth.Spin (which is in Spin language) , to propeller assembly language .
Is it possible or it's very complicated ?
Thank you in advance
eyes.gif

Post Edited (gambrino) : 11/9/2008 5:37:41 PM GMT

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2008-11-10 06:26
    gambrino,

    It's possible... the main reason I didn't do it was because I didn't want to mess with Assembly division at the time. That said you can pre-calculate the values with Spin, and just pass them into Assembly. The same registers exist in Assembly as do in Spin. Just use the MOV command to set the CTR's, FRQ's, and DIR's from within Assembly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-10 14:25
    Since the initial question has been answered, may I ask if anyone has done any
    calculations on musical note-to-frequencies using Synth? I'd love to have this list
    if someone has done it.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • LeonLeon Posts: 7,620
    edited 2008-11-10 14:29
    Do you mean a note-to-frequency table? There should be plenty of those on the Web, or you could generate one in Excel. I used one many years ago to play simple tunes on a Z80.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-10 14:38
    Duh, I didn't think about this not being "Synth" specific! Thanks for hitting me in the head. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
Sign In or Register to comment.