乐谱的最佳方法 [英] Best method for music notation

查看:94
本文介绍了乐谱的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用wpf编写音乐符号程序的一种好方法是什么?我想将内部表示法表示为谱号,小节,节拍和音符的层次结构,并在其中附加附件".给每个字形赋予一个视觉表示(我猜想是某种与wpf如何配合视觉效果并行的排序方式).我可以利用wpf的功能和逻辑来简化任务,还是应该考虑使用它们的其他方法?我担心的最大问题是控制,起初我的想法是要有一个布局"元素.或可视化"经理将尝试确定可视化层次结构的最佳方法,然后在需要时可以由用户修改可视化.这样,人们可以为不同的目的编写不同的可视化工具.用于符号之间的连接. (因此,一个音符将具有一个可以连接到工作人员的头连接器,以及一个可以连接到其他音符的​​标志连接器)

我不确定我的想法会发挥多大的作用,并希望我能得到一些帮助更好的建议.

谢谢,乔恩·乔恩

What would be a good method to approach writing a music notation program in wpf? I'd like to represent the internal notation as a hierarchy of staffs, bars, beats, and notes and "attach" glyph's to each to give a visual representation(I guess sorta paralleling how wpf works with visuals). Can I leverage the power and logic of wpf to simplify the task or is their some other method I should look at? The biggest issue I'm worried about is control and initially my idea was to have a "layout" or "visualization" manager that would attempt to determine the best way to visualize the hierarchy and then have the ability to modifiy the visualization by the user if needed. This way one could write different visualizers for different purposes.

Also, I was thinking that maybe I would represent all non-text musical symbols mathematically and wrap text symbols in that each would have "anchors" for connection between symbols. (so a note would have a head connector that would connect to staff and a flag connector that would connect to other notes)

I'm not sure how good my ideas would work though and hope that I can get some better suggestions.

Thanks,
Jon

推荐答案

乔恩,你好,
不能告诉你如何解决这个问题立即使用WPF,但我可以肯定:您首先需要拥有一个可靠的业务对象模型,这对于音乐符号来说是困难的部分,具体取决于您需要多少细节.到目前为止,我在WPF上的经验告诉我,这对于在业务对象和图形组件之间进行简单的数据绑定非常有用,但是一旦您开始遇到许多小的不同情况,异常和特殊情况,功能代码就可以更好地工作.
一些指针可能对您有帮助,尽管与WPF无关(您需要使用自己喜欢的搜索引擎进行查找):
-MusicXML作为音乐符号文件交换格式的标准
-呈现音乐的lilypond符号
- www.wikifonia.org ,用于获取简单的线索表"式分数的来源(我只是部分参与了项目
-MuseScore用于开源音乐符号编辑器
Best,
Koen
Hi Jon,
can't tell you how to tackle this with WPF right away, but I'm sure you could: you will need to have a solid business object model first though , which is the hard part for music notation, depending on how much detail you need. My experience so far with WPF tells me that it's very good for simple databindings between business objects and graphical components, but as soon as you start to have many small different cases and exceptions and special things, functional code seems to work better.
Some pointers that might help you, although not WPF-related (you'll need to look them up using your favorite search engine):
- MusicXML as a standard for music notation file exchange format
- lilypond for rendering music notation
- www.wikifonia.org for sources of simple "lead sheet"-style scores (side-project I'm partially involved with)
- MuseScore for an open source music notation editor
Best,
Koen


这篇关于乐谱的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆