Code Monkey home page Code Monkey logo

Comments (8)

ignotus666 avatar ignotus666 commented on June 28, 2024 2

This was with a Megadrum, but I was able to get positional sensing working with a side-mounted trigger. The trick was to install a cone (no sensor) in the centre. You can see how it performed here.

from edrumulus.

3hhh avatar 3hhh commented on June 28, 2024 1

Ok, then this won't be implemented and can be closed.

from edrumulus.

corrados avatar corrados commented on June 28, 2024

The PDX-8 has the piezo on the bottom of the pad. You can tweak the positional sensing to work of for that pad with the existing parameters pos_threshold and pos_sensitivity.

from edrumulus.

3hhh avatar 3hhh commented on June 28, 2024

The PDX-8 has the piezo on the bottom of the pad.

But in the middle, isn't it?

You can tweak the positional sensing to work of for that pad with the existing parameters pos_threshold and pos_sensitivity.

Yes, I noticed that it produces some consistent values.
However obviously it believes the middle to be at the top.
It should be possible to adapt that behaviour though.

from edrumulus.

corrados avatar corrados commented on June 28, 2024

The PDX-8 has the piezo on the bottom of the pad.

But in the middle, isn't it?

No, it is at the bottom.

However obviously it believes the middle to be at the top.

No, it does not. I just outputs the distance to the piezo. More information you cannot extract from a single sensor.

from edrumulus.

corrados avatar corrados commented on June 28, 2024

That's a nice trick, thanks for sharing.

from edrumulus.

3hhh avatar 3hhh commented on June 28, 2024

It just outputs the distance to the piezo. More information you cannot extract from a single sensor.

I then wonder how the PDX-8 behaves when you get close to the bottom. Does it correctly identify it as edge?
I guess not as that would contradict your distance statement.

So if a single piezo can just measure the distance - which makes sense to me -, this problem cannot be solved in software only anyway (if you draw a circle on the top of a pad you'll notice that it hits both edges, but the middle as well - how should one decide then?) and I guess my current settings with the top piezo are as good as they can get (the middle is detected as "somewhat close to the middle" and the bottom edges are detected).

from edrumulus.

corrados avatar corrados commented on June 28, 2024

I guess not as that would contradict your distance statement.

That's correct. If you hit at the bottom, it detects it as the center. You have to adjust the positional sensing parameters in a way that the actual strike in the middle position is detected as the middle position so that if you move to the bottom, the position does not change. Just if you move towards the upper edge, the position is detected as edge. This is the best you can do with a piezo which is not mounted in the middle (or you use the trick suggested by ignotus666 but this would require to change the hardware).

from edrumulus.

Related Issues (20)

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.