Few questions about setting up the development environment #328
Replies: 2 comments 2 replies
-
Hi! Not very tonal specific, but some hints here:
So I don't have an answer. Maybe if you explain specifically what are you trying to achieve that requires tonal modification, I could help a little bit further |
Beta Was this translation helpful? Give feedback.
-
Ah, that's great. Unfortunately tonal is not well suited for non-well-tempered tuning or scales, basically because it uses note names (or intervals, all in wester conception of the term) as source of truth. As a lover of music from all around the world, I've been thinking for a while to create something that supports other tunings or scales, but can't find time or motivation enough 🤷 Anyway, you can add new scales using https://github.com/tonaljs/tonal/tree/main/packages/scale-type#addintervals-string-name-string-aliases-string--scaletype |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm new to typescript and am trying to add some functionality to some packages in this repo. I tried to to create a node/typescript package and add
tonaljs
as a dependency and develop my package while modifying thetonaljs
. To achieve this, I tried to rely onnodemon
so that whenever I make any change on the dependency (@tonaljs), they are automatically propagated to my package.What I did was:
tonaljs
usingyarn install
followed byyarn build:all
npm link
on each folder intonal/packages/
(I also tried this step on all built files intonal/node_modules/@tonaljs
npm link <name>
to add each package from previous step to my own packagenodemon
on the maintonaljs
folder (NOT the one in my package'snode_module
folder) to monitor changes (tried this on thetonal/packages
folder as well as a specific folder liketonal/packages/intervals
).The problem is that
nodemon
detects changes, but the output of API doesn't change in my package.Few questions:
main
file frompackage.json
exist before the build?tonal
folder, or do I have to create another project and add this as a dependency?Thank you,
Beta Was this translation helpful? Give feedback.
All reactions