The DGX 505 does not have midi in and out ports.I know because I had one and got rid of it again for that reason. I had bought it partly to use as a controller, wrongly assuming that it had the ports.. Taught me not to assume anything without checking specs.