Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sequence table and ideas #14

Closed
joereynolds opened this issue May 8, 2024 · 2 comments
Closed

sequence table and ideas #14

joereynolds opened this issue May 8, 2024 · 2 comments

Comments

@joereynolds
Copy link
Owner

joereynolds commented May 8, 2024

Janya ragas and a lot of hinudstani ragas (not like we support those atm) are a bit less restrictive in how their arohanas and avarohanas are defined.

An arohana could have 12 notes with 3 of the swaras duplicated and in a zig zag pattern and then the avarohana could be as little as 3 notes. Here's an example of a Janya for Mayamalavagowla

image

We currently assume that arohana and avarohana are always 7 swaras and the same up and down. This only really works for the 72 Melakarta ragas. We need this to be more flexible so I propose...

  1. Create a new table called swaras. This is a list of all the swaras
    1.1. Put the notes and their intervals in here too? As an example here's a few notes to get you started
name, note, interval
Sa, C, 1
R1, Db, b2
G2, Ebb, bb3
  1. Modify the arohana table.
    2.1. It should be 3 columns. raga_id, swara_id and order. So for example Sankarabharanam's arohana would be something like:
raga_id, swara_id, order
15, 1, 1
15, 2, 2 
15, 3, 3
15, 4, 4
15, 5, 5
15, 6, 6
15, 8, 8
  1. Modify the avarohana table to have the same structure as the above arohana table
  2. After this is done. We can drop the notes and formulas table as it'll be contained in the swaras table.
  3. Test all the complete work on Sankarabharanam (29)

Questions

  • What about anya swaras?
    • This should be fine with the new proposed structure. It's just a different set of swara_ids for a raga
  • Will this enable Alankarams and other patterny things to be played?
    • Kind of. We'll have the swara table in place which we'll need. Next is a case of creating tables for those patterns though which is unrelated to this work
  • Will this enable arohana and avarohana to be played correctly for janyas via tonejs?
    • Yeah. Once we have the above in place we can do something like (pseudocode)
// This will bring back a variable amount of results depending on the raga
$arohana = Raga->arohana->all->orderBy('order', 'asc')
@joereynolds joereynolds mentioned this issue May 8, 2024
3 tasks
@joereynolds
Copy link
Owner Author

joereynolds commented May 9, 2024

  • - Remove the old arohanas out of the json
  • - Remove the old avorahanas out of the json
  • - Remove new-* from the json and make it the default

Put this back into similar ragas once it's working

(Has <strong>{{ -- $otherRagaDiff -- }}</strong> instead of <strong>{{ $thisRagaDiff}}</strong>)

@joereynolds
Copy link
Owner Author

Merged. See #16

Janya ragas are now possible properly, wahoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant