GithubHelp home page GithubHelp logo

b38tn1k / chordtoy Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 2.0 5.92 MB

MIDI Hardware Chord Generator

Home Page: https://b38tn1k.com/arduino/code/music/2019/10/24/chordtoy/#darkmode

License: MIT License

C++ 100.00%

chordtoy's Introduction

chordtoy

not an arpeggiator :-P

A dual channel MIDI chord generator with 'strumming' on one channel

I am not that great at building cases, here are my v1 and v2 prototypes. no cat :(

videos are easier than reading

how to install arduino midi library

built on a tested with MIDI Library version 4.3.1

I wanted to play chords using the Arturia BeatStep Pro sequencer. This sits in the MIDI chain between the sequencer and the synth and uses the incoming MIDI note to stack a chord.*

Features

  • Major / Minor Switch. Major mode has a dominant 7th rather than major 7th chord, I haven't used it much.

  • Key Selector Pot: Choose the key, other chords are mapped to scale for diatonic chords (I hope/think)

  • Chord Selector Pot: Starting with the root note, add more notes to create a more complex sound. I tried to group the less complex sounds at low values and the more extreme sounds at high values. So, in Minor mode you can turn up to go from one note to a power chord to a minor chord to a minor 7, 9th, 11th, 13th.. with a couple more variations.

  • Inversion Mode Pot: at zero the root note is at the bottom. At 100% the root note is at the top of the chord. Variations exist in between.

  • Strum Rate Pot: When I first made this I just wanted to play simple block chords for techno-y sounding stabs on the DX. By accident I realized that the strummed chord can sound really nice and give some movement to a beat. Rhythms like Legowelt or Flying Lotus... so at one extreme the chord plays all at once. At the other extreme the notes are plucked out one at a time slowly. Yes, like an arpeggiator. but no repeating or syncing cause I have a BeatStep that can keep time and play arpeggios :-)

  • a Legato Switch changes the way MIDI noteoff messages are sent, allowing the strummed chord to ring out from a trigger or be cut short.

  • a Bypass Switch, turn off the effect. More useful than turning everything down as in V1.

  • a Second MIDI Channel. The MIDI_STRUM_CHANNEL does the 'strumming' chord effect. The MIDI_BLOCK_CHORD_CHANNEL is used to transmit block chords with the same notes as the Master chord, but with its own unique settings. It works nicely with my (newish) Behringer Crave in arp mode, giving me a 'free time' chord flourish from the DX and accompanying in time Arpeggios from the Crave. If you dont want the second channel stuff just don't let any devices listen on that channel and it should be fine, maybe tie the 'chord size' analog pin to ground :)

  • Second Inversion Mode: as above but for the MIDI_BLOCK_CHORD_CHANNEL, and with notes shifted 2 octaves cause I like it more.

  • Chord Size: increase the number of notes in the MIDI_BLOCK_CHORD_CHANNEL by adding octaves above and below.

Building

See below for my early prototypes, there is an in development kicad project included in this repo. Maybe someone good at EE can help? hmu!

Basically, you want to connect MIDI DINs to the Tx and Rx of the Arduino I used this instructable. There are 6 pots, 3 switches and 2 LEDS in the current prototype, you can see the pin assignments in the .ino file.

Version 1 GPIOs per the .ino sketch: Circuit Diagram Version 2 is similar with pot and switch IOs listed at top of the .ino file.

Prototype using a Pro Trinket (same pinouts as UNO) before I made it diatonic: cat tax

Almost TODOs, Maybe just ideas

  • MIDI CC Control for the various pots and switches
  • Does FortySevenEffect MIDI library support transport, tempo, etc pass through?

* Akai and Oberheim used to make boxes that did this sort of thing and this functionality is now built into heaps of DAWs, possible some synths. my Yamaha DX doesn't

Thank you to David Fodel for testing, advice and motivation!

chordtoy's People

Contributors

b38tn1k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chordtoy's Issues

MIDI Thru in Bypass mode

In Bypass Mode, MIDI messages for all channels should pass through. Currently this only works for the active channel.

I tried a naive channel filter while setting the MIDI service thing to all channels, allowed pass through but the filter wouldn't pick u[ active channel when not in Bypass. rtfm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.