# Chords?Idea For Tool

**URL:** <https://forum.renoise.com/t/chords-idea-for-tool/29351>\
**Category:** Renoise Tools\
**Created:** [July 27, 2010, 8:39pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351 "2010-07-27T20:39:41Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 27, 2010, 8:39pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/1 "2010-07-27T20:39:41Z")

</div>

i got a idea for a tool,i will try to see if its possible to make

it will be based on the randomize notes tool,but instead of randomizing notes,i will see if i can make it enter chords

but right now i need to figure out how i make chords into Lua-code

i found this website that show me the chords

[http://www.all-guitar-chords.com/scales-to-chords.php](http://www.all-guitar-chords.com/scales-to-chords.php)

now i just need to figure out if something like this would be possible with the scripting in its current state?

---

<div class="post-metadata">

**Author:** ![Moonriders](https://forum.renoise.com/user_avatar/forum.renoise.com/moonriders/32/1345_2.png) [@Moonriders](https://forum.renoise.com/u/Moonriders)\
**Post date:** [July 27, 2010, 8:47pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/2 "2010-07-27T20:47:17Z")

</div>

something like what you are thinking of, following the circle of fifths could make a great AI composer tool.

> **[The Circle Of Fifths: Music Theory For Dummies | Guitar Lesson](https://www.ultimate-guitar.com/lessons/for_beginners/the_circle_of_fifths_music_theory_for_dummies.html)**
>
> Circle Of Fifths can help you as a guitarist when you get stuck trying to write a song or stuck trying to figure a song out by ear.

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 28, 2010, 9:34am UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/3 "2010-07-28T09:34:48Z")

</div>

thanks for the link

i dont know any music theory,so before i start working on this,i need to read up on chords and stuff  
and figure out how to write them in Lua code i guess its close to how you do the scales,but im not sure though

also renoise doesent support these note prefixes

Bb,Eb,Ab,Db,Gb

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 28, 2010, 12:04pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/4 "2010-07-28T12:04:22Z")

</div>

btw is there a reason why renoise doesent support note prefixes like Bb,Eb,Ab,Db,Gb ??

---

<div class="post-metadata">

**Author:** ![maes](https://forum.renoise.com/user_avatar/forum.renoise.com/maes/32/991_2.png) [@maes](https://forum.renoise.com/u/maes)\
**Post date:** [July 28, 2010, 3:29pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/5 "2010-07-28T15:29:41Z")

</div>

> [@s-n-s](#):
>
> btw is there a reason why renoise doesent support note prefixes like Bb,Eb,Ab,Db,Gb ??

well, i guess because

1. they are of no pratical consequence unless you are used to think in terms of keys and such. in classical western musical theory is there a difference notation-wise between, for example a D# and a Eb, which depends on the musical context.

2. we don’t type in the notes in renoise (like: “e” + “b” to get eb) but play them on the keyboard. so there’s no way for renoise to know if it should put a sharp or a flat.

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 28, 2010, 3:41pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/6 "2010-07-28T15:41:56Z")

</div>

i will just concentrate in using the sharp notes first,but it will take some time before i have something usefull,because i dont have that much time these days,but im kind of excited to dive into this ![:D](https://files.renoise.com/forum/emoticons/default/biggrin.gif)

EDIT:  
i just had a look on this site  
[http://www.all-guitar-chords.com/scales-to-chords.php](http://www.all-guitar-chords.com/scales-to-chords.php)

and i noticed this

c  
cmaj7  
c7  
c add9  
c m  
c m7  
c dim  
c dim7  
c aug  
c sus4  
c sus2  
c maj9

now how do i translate those into lua-code??

like i said i know jack about music theory

---

<div class="post-metadata">

**Author:** ![maes](https://forum.renoise.com/user_avatar/forum.renoise.com/maes/32/991_2.png) [@maes](https://forum.renoise.com/u/maes)\
**Post date:** [July 28, 2010, 3:55pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/7 "2010-07-28T15:55:41Z")

</div>

do you want the pitches for each chord?

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 28, 2010, 4:11pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/8 "2010-07-28T16:11:32Z")

</div>

> [@maes](#):
>
> do you want the pitches for each chord?

ahh those are the pitches,no i dont need them in the first go

---

<div class="post-metadata">

**Author:** ![Beatslaughter](https://forum.renoise.com/user_avatar/forum.renoise.com/beatslaughter/32/236_2.png) [@Beatslaughter](https://forum.renoise.com/u/Beatslaughter)\
**Post date:** [July 28, 2010, 4:14pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/9 "2010-07-28T16:14:13Z")

</div>

Did save a list with chord tables as pictures a few years back from some website. Probably useful for you:

[http://www.beatslaughter.de/temp/chord\_tables.zip](http://www.beatslaughter.de/temp/chord_tables.zip)

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [July 28, 2010, 4:16pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/10 "2010-07-28T16:16:47Z")

</div>

> [@Beatslaughter](#):
>
> Did save a list with chord tables as pictures a few years back from some website. Probably useful for you:
> 
> [http://www.beatslaughter.de/temp/chord\_tables.zip](http://www.beatslaughter.de/temp/chord_tables.zip)

thanks beatslaughter,will have a look on those

i also found this website with chords to scale,that could also be usefull

---

<div class="post-metadata">

**Author:** ![Jonas](https://forum.renoise.com/user_avatar/forum.renoise.com/jonas/32/6937_2.png) [@Jonas](https://forum.renoise.com/u/Jonas)\
**Post date:** [July 28, 2010, 11:25pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/11 "2010-07-28T23:25:08Z")

</div>

I hope Suva will convert his great app into a script one day for the chord generating win 🙂 [http://sf.remixta.net/](http://sf.remixta.net/)

---

<div class="post-metadata">

**Author:** ![00.1](https://forum.renoise.com/user_avatar/forum.renoise.com/00.1/32/542_2.png) [@00.1](https://forum.renoise.com/u/00.1)\
**Post date:** [August 4, 2010, 1:20am UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/12 "2010-08-04T01:20:31Z")

</div>

Chords xrns from [guitar reference thread](https://forum.renoise.com/t/guitar-reference/28890).

The original point of the thread was for “translating guitar to keyboard (vice versa) or programmed notes to guitar (vise versa)”.

I got carried away and included in the xrns complete keyboard chords.

The reason I didn’t convert the guitar poster version was because of alternate tunings.

Also from that thread, a link to the site where the xrns chords are based on.

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [August 4, 2010, 10:02am UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/13 "2010-08-04T10:02:39Z")

</div>

i havent had the time to look into this more,im pretty busy for the time being,but hope i soon will have the time

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [August 8, 2010, 4:31pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/14 "2010-08-08T16:31:51Z")

</div>

finally had some time to look at the snippet scripts in the starterpack,and was wondering if i could use this for scales/chords,if i modifyied it abit

– generate a simple arp sequence (repeating in the current  
– pattern & track from line 0 to the pattern end)

local pattern\_iter = renoise.song().pattern\_iterator

local pattern\_index = renoise.song().selected\_pattern\_index  
local track\_index = renoise.song().selected\_track\_index  
local instrument\_index = renoise.song().selected\_instrument\_index

local EMPTY\_VOLUME = renoise.PatternTrackLine.EMPTY\_VOLUME  
local EMPTY\_INSTRUMENT = renoise.PatternTrackLine.EMPTY\_INSTRUMENT

local arp\_sequence = {  
{note=“C-4”, instrument = instrument\_index, volume = 0x20},  
{note=“E-4”, instrument = instrument\_index, volume = 0x40},  
{note=“G-4”, instrument = instrument\_index, volume = 0x80},  
{note=“OFF”, instrument = EMPTY\_INSTRUMENT, volume = EMPTY\_VOLUME},  
{note=“G-4”, instrument = instrument\_index, volume = EMPTY\_VOLUME},  
{note="—", instrument = EMPTY\_INSTRUMENT, volume = EMPTY\_VOLUME},  
{note=“E-4”, instrument = instrument\_index, volume = 0x40},  
{note=“C-4”, instrument = instrument\_index, volume = 0x20},  
}

for pos,line in pattern\_iter:lines\_in\_pattern\_track(pattern\_index, track\_index) do  
if not table.is\_empty(line.note\_columns) then

local note\_column = line.note\_columns[1]  
note\_column:clear()

local arp\_index = math.mod(pos.line - 1, #arp\_sequence) + 1  
note\_column.note\_string = arp\_sequence[arp\_index].note  
note\_column.instrument\_value = arp\_sequence[arp\_index].instrument  
note\_column.volume\_value = arp\_sequence[arp\_index].volume  
end  
end

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [August 8, 2010, 11:19pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/15 "2010-08-08T23:19:23Z")

</div>

i just tried experimenting with the above code,but i dont get any sound??

---

<div class="post-metadata">

**Author:** ![eeter](https://forum.renoise.com/user_avatar/forum.renoise.com/eeter/32/784_2.png) [@eeter](https://forum.renoise.com/u/eeter)\
**Post date:** [August 8, 2010, 11:24pm UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/16 "2010-08-08T23:24:42Z")

</div>

> [@s-n-s](#):
>
> i just tried experimenting with the above code,but i dont get any sound??

Sound from what? From where? ![:rolleyes:](https://forum.renoise.com/uploads/default/original/3X/8/5/859e7d5162a4faccb93206fd269aac2c1345b28c.gif)

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [August 9, 2010, 9:16am UTC](https://forum.renoise.com/t/chords-idea-for-tool/29351/17 "2010-08-09T09:16:33Z")

</div>

> [@eeter](#):
>
> Sound from what? From where? ![:rolleyes:](https://forum.renoise.com/uploads/default/original/3X/8/5/859e7d5162a4faccb93206fd269aac2c1345b28c.gif)

EDIT:doh figured it out ![:rolleyes:](https://forum.renoise.com/uploads/default/original/3X/8/5/859e7d5162a4faccb93206fd269aac2c1345b28c.gif)
